Bug#906411: surefire: FTBFS in buster/sid (error: unreported exception IOException; must be caught or declared to be thrown)

Santiago Vila sanvila at debian.org
Fri Aug 17 12:21:37 BST 2018


Package: src:surefire
Version: 2.21.0-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep
   dh_update_autotools_config -i
   dh_autoreconf -i
   dh_auto_configure -i
	mh_patchpoms -plibsurefire-java --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
   dh_auto_build -i
	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.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 --batch-mode package -DskipTests -Dnotimestamp=true -Dlocale=en_US
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...

[... snipped ...]

[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[206,46] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[214,46] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[233,42] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[238,26] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[328,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[329,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[332,28] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[338,32] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[342,32] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[345,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[351,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[353,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[354,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[356,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[360,28] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[363,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[365,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[367,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[369,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[371,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[378,24] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[384,28] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[397,36] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[401,36] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[408,25] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[416,22] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[435,34] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[451,32] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[463,30] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[474,34] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[476,34] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[478,34] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[480,32] error: unreported exception IOException; must be caught or declared to be thrown
[ERROR] /<<PKGBUILDDIR>>/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/report/StatelessXmlReporter.java:[482,28] error: unreported exception IOException; must be caught or declared to be thrown
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :maven-surefire-common
dh_auto_build: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.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 --batch-mode package -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
make: *** [debian/rules:4: build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made with "dpkg-buildpackage -A" in my autobuilder.
Most probably, it also fails here in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/surefire.html

where you can get a full build log if you need it.

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the BTS web page for this package.

Thanks.



More information about the pkg-java-maintainers mailing list