Bug#869011: maven-install-plugin: FTBFS: dh_auto_test: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo test returned exit code 1

Lucas Nussbaum lucas at debian.org
Thu Jul 20 05:40:14 UTC 2017


Source: maven-install-plugin
Version: 2.5.2-2
Severity: serious
Tags: buster sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20170719 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
>  debian/rules build
> dh build
>    dh_testdir
>    dh_update_autotools_config
>    dh_autoreconf
>    dh_auto_configure
> find: '/usr/share/maven-repo/org/codehaus/plexus/plexus-compiler/*/*.jar': No such file or directory
> find: '/usr/share/maven-repo/org/codehaus/plexus/plexus-compilers/*/*.jar': No such file or directory
> find: '/usr/share/maven-repo/org/codehaus/plexus/plexus-containers/*/*.jar': No such file or directory
> 	mh_patchpoms -plibmaven-install-plugin-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
>    dh_auto_build
> 	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo package -DskipTests -Dnotimestamp=true -Dlocale=en_US
> [INFO] Scanning for projects...
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache Maven Install Plugin 2.5.2
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-resources-plugin:3.0.0:resources (default-resources) @ maven-install-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/main/resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ maven-install-plugin ---
> [WARNING] The POM for org.codehaus.plexus:plexus-compiler-api:jar:2.x is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
> [WARNING] The POM for org.codehaus.plexus:plexus-compiler-javac:jar:2.x is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
> [INFO] Changes detected - recompiling the module!
> [WARNING] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
> [INFO] Compiling 5 source files to /<<PKGBUILDDIR>>/target/classes
> [INFO] /<<PKGBUILDDIR>>/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java: /<<PKGBUILDDIR>>/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java uses or overrides a deprecated API.
> [INFO] /<<PKGBUILDDIR>>/src/main/java/org/apache/maven/plugin/install/InstallFileMojo.java: Recompile with -Xlint:deprecation for details.
> [INFO] 
> [INFO] --- maven-plugin-plugin:3.5:descriptor (default-descriptor) @ maven-install-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to read mojo source files, i.e. build is platform dependent!
> [INFO] java-javadoc mojo extractor found 0 mojo descriptor.
> [INFO] java-annotations mojo extractor found 2 mojo descriptors.
> [INFO] 
> [INFO] --- maven-plugin-plugin:3.5:descriptor (mojo-descriptor) @ maven-install-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to read mojo source files, i.e. build is platform dependent!
> [INFO] java-javadoc mojo extractor found 0 mojo descriptor.
> [INFO] java-annotations mojo extractor found 2 mojo descriptors.
> [INFO] 
> [INFO] --- maven-resources-plugin:3.0.0:testResources (default-testResources) @ maven-install-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 22 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ maven-install-plugin ---
> [INFO] Changes detected - recompiling the module!
> [WARNING] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
> [INFO] Compiling 8 source files to /<<PKGBUILDDIR>>/target/test-classes
> [INFO] /<<PKGBUILDDIR>>/src/test/java/org/apache/maven/plugin/install/stubs/InstallArtifactStub.java: Some input files use unchecked or unsafe operations.
> [INFO] /<<PKGBUILDDIR>>/src/test/java/org/apache/maven/plugin/install/stubs/InstallArtifactStub.java: Recompile with -Xlint:unchecked for details.
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ maven-install-plugin ---
> [INFO] Tests are skipped.
> [INFO] 
> [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ maven-install-plugin ---
> [INFO] Building jar: /<<PKGBUILDDIR>>/target/maven-install-plugin-2.5.2.jar
> [INFO] 
> [INFO] --- maven-plugin-plugin:3.5:addPluginArtifactMetadata (default-addPluginArtifactMetadata) @ maven-install-plugin ---
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1.891 s
> [INFO] Finished at: 2017-07-19T11:44:43Z
> [INFO] Final Memory: 27M/751M
> [INFO] ------------------------------------------------------------------------
>    dh_auto_test
> 	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo test
> [INFO] Scanning for projects...
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Apache Maven Install Plugin 2.5.2
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-resources-plugin:3.0.0:resources (default-resources) @ maven-install-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /<<PKGBUILDDIR>>/src/main/resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ maven-install-plugin ---
> [WARNING] The POM for org.codehaus.plexus:plexus-compiler-api:jar:2.x is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
> [WARNING] The POM for org.codehaus.plexus:plexus-compiler-javac:jar:2.x is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-plugin-plugin:3.5:descriptor (default-descriptor) @ maven-install-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to read mojo source files, i.e. build is platform dependent!
> [INFO] java-javadoc mojo extractor found 0 mojo descriptor.
> [INFO] java-annotations mojo extractor found 2 mojo descriptors.
> [INFO] 
> [INFO] --- maven-plugin-plugin:3.5:descriptor (mojo-descriptor) @ maven-install-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to read mojo source files, i.e. build is platform dependent!
> [INFO] java-javadoc mojo extractor found 0 mojo descriptor.
> [INFO] java-annotations mojo extractor found 2 mojo descriptors.
> [INFO] 
> [INFO] --- maven-resources-plugin:3.0.0:testResources (default-testResources) @ maven-install-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 22 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ maven-install-plugin ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ maven-install-plugin ---
> [INFO] Surefire report directory: /<<PKGBUILDDIR>>/target/surefire-reports
> 
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.maven.plugin.install.InstallMojoTest
> 
> Results :
> 
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
> 
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1.420 s
> [INFO] Finished at: 2017-07-19T11:44:46Z
> [INFO] Final Memory: 23M/915M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project maven-install-plugin: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: There was an error in the forked process
> [ERROR] java.lang.NoClassDefFoundError: org/apache/maven/execution/MavenExecutionResult
> [ERROR] 	at java.lang.Class.getDeclaredMethods0(Native Method)
> [ERROR] 	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
> [ERROR] 	at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
> [ERROR] 	at java.lang.Class.getMethod0(Class.java:3018)
> [ERROR] 	at java.lang.Class.getMethod(Class.java:1784)
> [ERROR] 	at org.apache.maven.surefire.common.junit3.JUnit3Reflector.createInstanceFromSuiteMethod(JUnit3Reflector.java:151)
> [ERROR] 	at org.apache.maven.surefire.common.junit3.JUnit3Reflector.constructTestObject(JUnit3Reflector.java:120)
> [ERROR] 	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:70)
> [ERROR] 	at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:131)
> [ERROR] 	at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:108)
> [ERROR] 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
> [ERROR] 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
> [ERROR] 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> [ERROR] Caused by: java.lang.ClassNotFoundException: org.apache.maven.execution.MavenExecutionResult
> [ERROR] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> [ERROR] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> [ERROR] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
> [ERROR] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> [ERROR] 	... 13 more
> [ERROR] 
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
> dh_auto_test: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo test returned exit code 1

The full build log is available from:
   http://aws-logs.debian.net/2017/07/19/maven-install-plugin_2.5.2-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the pkg-java-maintainers mailing list