Bug#871354: aspectj-maven-plugin: FTBFS: ERROR Failed to execute goal [32morg.apache.maven.plugins:maven-surefire-plugin:2.19.1:test[m [1m?=(default-test)=?UTF-8?Q?[m on project [36maspectj-maven-plugin[m: =?UTF-8?Q?=1B[1; 31mExecution?= default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: There was an error in the forked process[m
Lucas Nussbaum
lucas at debian.org
Mon Aug 7 15:46:58 UTC 2017
Source: aspectj-maven-plugin
Version: 1.7-1
Severity: serious
Tags: buster sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20170807 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
> test -x debian/rules
> mkdir -p "."
> /usr/share/maven-debian-helper/copy-repo.sh /<<PKGBUILDDIR>>/debian
> mh_patchpoms -plibaspectj-maven-plugin-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo --build-no-docs
> touch debian/stamp-poms-patched
> # before-build target may be used to unpatch the pom files, so we need to check if
> # patching the pom files is needed here, normally not
> if [ ! -f pom.xml.save ]; then \
> /usr/bin/make -f debian/rules patch-poms; \
> fi
> cd . && /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 -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo package -DskipTests
> [[1;34mINFO[m] Scanning for projects...
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m] [1mBuilding Mojo's AspectJ Maven Plugin 1.7[m
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-plugin-plugin:3.5:helpmojo[m [1m(help-mojo)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;33mWARNING[m] Using platform encoding (ANSI_X3.4-1968 actually) to read mojo source files, i.e. build is platform dependent!
> [[1;34mINFO[m] java-javadoc mojo extractor found 3 mojo descriptors.
> [[1;33mWARNING[m] Unable to get sources artifact for org.apache.maven.reporting:maven-reporting-impl:debian. Some javadoc tags (@since, @deprecated and comments) won't be used
> [[1;34mINFO[m] java-annotations mojo extractor found 0 mojo descriptor.
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-resources-plugin:3.0.2:resources[m [1m(default-resources)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;33mWARNING[m] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [[1;34mINFO[m] Copying 4 resources
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-compiler-plugin:3.6.1:compile[m [1m(default-compile)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;33mWARNING[m] 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
> [[1;33mWARNING[m] 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
> [[1;34mINFO[m] Changes detected - recompiling the module!
> [[1;33mWARNING[m] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
> [[1;34mINFO[m] Compiling 12 source files to /<<PKGBUILDDIR>>/target/classes
> [[1;34mINFO[m] /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java: /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java uses unchecked or unsafe operations.
> [[1;34mINFO[m] /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java: Recompile with -Xlint:unchecked for details.
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-plugin-plugin:3.5:descriptor[m [1m(default-descriptor)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;33mWARNING[m] Using platform encoding (ANSI_X3.4-1968 actually) to read mojo source files, i.e. build is platform dependent!
> [[1;34mINFO[m] java-javadoc mojo extractor found 4 mojo descriptors.
> [[1;33mWARNING[m] Unable to get sources artifact for org.apache.maven.reporting:maven-reporting-impl:debian. Some javadoc tags (@since, @deprecated and comments) won't be used
> [[1;34mINFO[m] java-annotations mojo extractor found 0 mojo descriptor.
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-resources-plugin:3.0.2:testResources[m [1m(default-testResources)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;33mWARNING[m] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [[1;34mINFO[m] Copying 0 resource
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-compiler-plugin:3.6.1:testCompile[m [1m(default-testCompile)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;34mINFO[m] Changes detected - recompiling the module!
> [[1;33mWARNING[m] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
> [[1;34mINFO[m] Compiling 6 source files to /<<PKGBUILDDIR>>/target/test-classes
> [[1;34mINFO[m] /<<PKGBUILDDIR>>/src/test/java/org/codehaus/mojo/aspectj/AbstractAjcCompilerTest.java: Some input files use unchecked or unsafe operations.
> [[1;34mINFO[m] /<<PKGBUILDDIR>>/src/test/java/org/codehaus/mojo/aspectj/AbstractAjcCompilerTest.java: Recompile with -Xlint:unchecked for details.
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-surefire-plugin:2.19.1:test[m [1m(default-test)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;34mINFO[m] Tests are skipped.
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-jar-plugin:3.0.2:jar[m [1m(default-jar)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;34mINFO[m] Building jar: /<<PKGBUILDDIR>>/target/aspectj-maven-plugin-1.7.jar
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-plugin-plugin:3.5:addPluginArtifactMetadata[m [1m(default-addPluginArtifactMetadata)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m] [1;32mBUILD SUCCESS[m
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m] Total time: 3.821 s
> [[1;34mINFO[m] Finished at: 2017-08-07T11:10:26Z
> [[1;34mINFO[m] Final Memory: 55M/1933M
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> cd . && /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 -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Ddebian.package=libaspectj-maven-plugin-java -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo -Dinstall.to.usj=true test
> [[1;34mINFO[m] Scanning for projects...
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m] [1mBuilding Mojo's AspectJ Maven Plugin 1.7[m
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-plugin-plugin:3.5:helpmojo[m [1m(help-mojo)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;33mWARNING[m] Using platform encoding (ANSI_X3.4-1968 actually) to read mojo source files, i.e. build is platform dependent!
> [[1;34mINFO[m] java-javadoc mojo extractor found 4 mojo descriptors.
> [[1;33mWARNING[m] Unable to get sources artifact for org.apache.maven.reporting:maven-reporting-impl:debian. Some javadoc tags (@since, @deprecated and comments) won't be used
> [[1;34mINFO[m] java-annotations mojo extractor found 0 mojo descriptor.
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-resources-plugin:3.0.2:resources[m [1m(default-resources)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;33mWARNING[m] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [[1;34mINFO[m] Copying 4 resources
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-compiler-plugin:3.6.1:compile[m [1m(default-compile)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;33mWARNING[m] 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
> [[1;33mWARNING[m] 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
> [[1;34mINFO[m] Changes detected - recompiling the module!
> [[1;33mWARNING[m] File encoding has not been set, using platform encoding ANSI_X3.4-1968, i.e. build is platform dependent!
> [[1;34mINFO[m] Compiling 12 source files to /<<PKGBUILDDIR>>/target/classes
> [[1;34mINFO[m] /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java: /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java uses unchecked or unsafe operations.
> [[1;34mINFO[m] /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java: Recompile with -Xlint:unchecked for details.
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-plugin-plugin:3.5:descriptor[m [1m(default-descriptor)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;33mWARNING[m] Using platform encoding (ANSI_X3.4-1968 actually) to read mojo source files, i.e. build is platform dependent!
> [[1;34mINFO[m] java-javadoc mojo extractor found 4 mojo descriptors.
> [[1;33mWARNING[m] Unable to get sources artifact for org.apache.maven.reporting:maven-reporting-impl:debian. Some javadoc tags (@since, @deprecated and comments) won't be used
> [[1;34mINFO[m] java-annotations mojo extractor found 0 mojo descriptor.
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-resources-plugin:3.0.2:testResources[m [1m(default-testResources)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;33mWARNING[m] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [[1;34mINFO[m] Copying 0 resource
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-compiler-plugin:3.6.1:testCompile[m [1m(default-testCompile)[m @ [36maspectj-maven-plugin[0;1m ---[m
> [[1;34mINFO[m] Nothing to compile - all classes are up to date
> [[1;34mINFO[m]
> [[1;34mINFO[m] [1m--- [0;32mmaven-surefire-plugin:2.19.1:test[m [1m(default-test)[m @ [36maspectj-maven-plugin[0;1m ---[m
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running org.codehaus.mojo.aspectj.AjcHelperTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec - in org.codehaus.mojo.aspectj.AjcHelperTest
> Running org.codehaus.mojo.aspectj.AjcCompilerMojoTest
>
> Results :
>
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
>
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m] [1;31mBUILD FAILURE[m
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;34mINFO[m] Total time: 4.299 s
> [[1;34mINFO[m] Finished at: 2017-08-07T11:10:32Z
> [[1;34mINFO[m] Final Memory: 54M/1993M
> [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
> [[1;31mERROR[m] Failed to execute goal [32morg.apache.maven.plugins:maven-surefire-plugin:2.19.1:test[m [1m(default-test)[m on project [36maspectj-maven-plugin[m: [1;31mExecution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: There was an error in the forked process[m
> [[1;31mERROR[m] [1;31mjava.lang.NoClassDefFoundError: org/apache/maven/execution/MavenExecutionResult[m
> [[1;31mERROR[m] [1;31m at java.lang.Class.getDeclaredMethods0(Native Method)[m
> [[1;31mERROR[m] [1;31m at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)[m
> [[1;31mERROR[m] [1;31m at java.lang.Class.privateGetMethodRecursive(Class.java:3048)[m
> [[1;31mERROR[m] [1;31m at java.lang.Class.getMethod0(Class.java:3018)[m
> [[1;31mERROR[m] [1;31m at java.lang.Class.getMethod(Class.java:1784)[m
> [[1;31mERROR[m] [1;31m at org.apache.maven.surefire.common.junit3.JUnit3Reflector.createInstanceFromSuiteMethod(JUnit3Reflector.java:153)[m
> [[1;31mERROR[m] [1;31m at org.apache.maven.surefire.common.junit3.JUnit3Reflector.constructTestObject(JUnit3Reflector.java:124)[m
> [[1;31mERROR[m] [1;31m at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:74)[m
> [[1;31mERROR[m] [1;31m at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:136)[m
> [[1;31mERROR[m] [1;31m at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:109)[m
> [[1;31mERROR[m] [1;31m at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:291)[m
> [[1;31mERROR[m] [1;31m at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)[m
> [[1;31mERROR[m] [1;31m at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)[m
> [[1;31mERROR[m] [1;31mCaused by: java.lang.ClassNotFoundException: org.apache.maven.execution.MavenExecutionResult[m
> [[1;31mERROR[m] [1;31m at java.net.URLClassLoader.findClass(URLClassLoader.java:381)[m
> [[1;31mERROR[m] [1;31m at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[m
> [[1;31mERROR[m] [1;31m at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)[m
> [[1;31mERROR[m] [1;31m at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[m
> [[1;31mERROR[m] [1;31m ... 13 more[m
> [[1;31mERROR[m] [1;31m[m
> [[1;31mERROR[m] -> [1m[Help 1][m
> [[1;31mERROR[m]
> [[1;31mERROR[m] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch.
> [[1;31mERROR[m] Re-run Maven using the [1m-X[m switch to enable full debug logging.
> [[1;31mERROR[m]
> [[1;31mERROR[m] For more information about the errors and possible solutions, please read the following articles:
> [[1;31mERROR[m] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
> /usr/share/cdbs/1/class/maven.mk:127: recipe for target 'debian/stamp-maven-check' failed
> make: *** [debian/stamp-maven-check] Error 1
The full build log is available from:
http://aws-logs.debian.net/2017/08/07/aspectj-maven-plugin_1.7-1_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