Bug#871354: aspectj-maven-plugin: FTBFS: ERROR Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test ?=(default-test)=?UTF-8?Q? on project aspectj-maven-plugin: =?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

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
> [INFO] Scanning for projects...
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Mojo's AspectJ Maven Plugin 1.7
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-plugin-plugin:3.5:helpmojo (help-mojo) @ aspectj-maven-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 3 mojo descriptors.
> [WARNING] 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
> [INFO] java-annotations mojo extractor found 0 mojo descriptor.
> [INFO] 
> [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ aspectj-maven-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 4 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ aspectj-maven-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 12 source files to /<<PKGBUILDDIR>>/target/classes
> [INFO] /<<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.
> [INFO] /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java: Recompile with -Xlint:unchecked for details.
> [INFO] 
> [INFO] --- maven-plugin-plugin:3.5:descriptor (default-descriptor) @ aspectj-maven-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 4 mojo descriptors.
> [WARNING] 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
> [INFO] java-annotations mojo extractor found 0 mojo descriptor.
> [INFO] 
> [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ aspectj-maven-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 0 resource
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ aspectj-maven-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 6 source files to /<<PKGBUILDDIR>>/target/test-classes
> [INFO] /<<PKGBUILDDIR>>/src/test/java/org/codehaus/mojo/aspectj/AbstractAjcCompilerTest.java: Some input files use unchecked or unsafe operations.
> [INFO] /<<PKGBUILDDIR>>/src/test/java/org/codehaus/mojo/aspectj/AbstractAjcCompilerTest.java: Recompile with -Xlint:unchecked for details.
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ aspectj-maven-plugin ---
> [INFO] Tests are skipped.
> [INFO] 
> [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ aspectj-maven-plugin ---
> [INFO] Building jar: /<<PKGBUILDDIR>>/target/aspectj-maven-plugin-1.7.jar
> [INFO] 
> [INFO] --- maven-plugin-plugin:3.5:addPluginArtifactMetadata (default-addPluginArtifactMetadata) @ aspectj-maven-plugin ---
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3.821 s
> [INFO] Finished at: 2017-08-07T11:10:26Z
> [INFO] Final Memory: 55M/1933M
> [INFO] ------------------------------------------------------------------------
> 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
> [INFO] Scanning for projects...
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Mojo's AspectJ Maven Plugin 1.7
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-plugin-plugin:3.5:helpmojo (help-mojo) @ aspectj-maven-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 4 mojo descriptors.
> [WARNING] 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
> [INFO] java-annotations mojo extractor found 0 mojo descriptor.
> [INFO] 
> [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ aspectj-maven-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 4 resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ aspectj-maven-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 12 source files to /<<PKGBUILDDIR>>/target/classes
> [INFO] /<<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.
> [INFO] /<<PKGBUILDDIR>>/src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java: Recompile with -Xlint:unchecked for details.
> [INFO] 
> [INFO] --- maven-plugin-plugin:3.5:descriptor (default-descriptor) @ aspectj-maven-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 4 mojo descriptors.
> [WARNING] 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
> [INFO] java-annotations mojo extractor found 0 mojo descriptor.
> [INFO] 
> [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ aspectj-maven-plugin ---
> [WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy filtered resources, i.e. build is platform dependent!
> [INFO] Copying 0 resource
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ aspectj-maven-plugin ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ aspectj-maven-plugin ---
> 
> -------------------------------------------------------
>  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
> 
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 4.299 s
> [INFO] Finished at: 2017-08-07T11:10:32Z
> [INFO] Final Memory: 54M/1993M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project aspectj-maven-plugin: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1: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:153)
> [ERROR] 	at org.apache.maven.surefire.common.junit3.JUnit3Reflector.constructTestObject(JUnit3Reflector.java:124)
> [ERROR] 	at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:74)
> [ERROR] 	at org.apache.maven.surefire.junit.JUnit3Provider.executeTestSet(JUnit3Provider.java:136)
> [ERROR] 	at org.apache.maven.surefire.junit.JUnit3Provider.invoke(JUnit3Provider.java:109)
> [ERROR] 	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:291)
> [ERROR] 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
> [ERROR] 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
> [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
> /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