Bug#919798: antlr4: FTBFS (Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar)

Santiago Vila sanvila at debian.org
Sat Jan 19 17:35:32 GMT 2019


Package: src:antlr4
Version: 4.7.1-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 -pantlr4 --debian-build --keep-pom-version --maven-repo=/<<PKGBUILDDIR>>/debian/maven-repo
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp -r debian/generated-sources/antlr4/* runtime/Java/src/
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 javadoc:jar javadoc:aggregate -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

[... snipped ...]

[ERROR] Exit code: 1 - javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/7/docs/api/ are in the unnamed module.
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/CharStreams.java:27: warning - invalid usage of tag >
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/CodePointCharStream.java:19: warning - invalid usage of tag >
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/ParserInterpreter.java:72: warning - invalid usage of tag >
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/ParserInterpreter.java:72: warning - invalid usage of tag >
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/RuleContext.java:34: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/RuleContext.java:35: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/RuleContext.java:37: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/RuleContext.java:51: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/RuleContext.java:52: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/RuleContext.java:53: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/RuleContext.java:166: warning - invalid usage of tag {@see ParseTree#setParent}
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:16: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:18: warning - invalid usage of tag >
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:23: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:37: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:23: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:37: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/tree/ParseTreeListener.java:15: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:23: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:37: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:23: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:37: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:23: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/atn/CodePointTransitions.java:37: warning - invalid usage of tag <
[ERROR] /<<PKGBUILDDIR>>/runtime/Java/src/org/antlr/v4/runtime/ParserInterpreter.java:72: warning - invalid usage of tag >
[ERROR] 
[ERROR] Command line was: /usr/lib/jvm/java-11-openjdk-amd64/bin/javadoc @options @packages
[ERROR] 
[ERROR] Refer to the generated Javadoc files in '/<<PKGBUILDDIR>>/runtime/Java/target/apidocs' dir.
[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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :antlr4-runtime
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 javadoc:jar javadoc:aggregate -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

(The above is just how the builds ends and not necessarily the most relevant part)

The build was made in my autobuilder with "dpkg-buildpackage -A"
and it also fails here:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/antlr4.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