Bug#866550: antlr3.2: FTBFS: Missing Build-Depends on junit4

Daniel Schepler dschepler at gmail.com
Fri Jun 30 02:22:07 UTC 2017


Source: antlr3.2
Version: 3.2-14
Severity: serious

>From my pbuilder build log:

...
 debian/rules build
test -x debian/rules
mkdir -p "."
/usr/share/maven-debian-helper/copy-repo.sh /build/antlr3.2-3.2/debian
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 -pantlr3.2 --debian-build --keep-pom-version
--maven-repo=/build/antlr3.2-3.2/debian/maven-repo  --build-no-docs
touch debian/stamp-poms-patched
mh_unpatchpoms -pantlr3.2
rm -f -f debian/stamp-poms-patched
cp -r debian/generated-sources/antlr3/* tool/src/main/java
mh_patchpoms -pantlr3.2 --debian-build --keep-pom-version
-idebian/maven.bootstrap.ignoreRules
--maven-repo=/build/antlr3.2-3.2/debian/maven-repo
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=/build/antlr3.2-3.2/debian/maven.properties
-Dclasswor
lds.conf=/etc/maven/m2-debian.conf -Dmaven.home=/usr/share/maven
-Dmaven.multiModuleProjectDirectory=/build/antlr3.2-3.2
org.codehaus.plexus.classworlds.launcher.Launcher
-s/etc/maven/settings-debian.xml -Dmaven.repo.local=/b
uild/antlr3.2-3.2/debian/maven-repo -DbuildNumber="debian-14"
-Ddebian.dir=/build/antlr3.2-3.2/debian -Ddebian.package=antlr3.2
-Dmaven.repo.local=/build/antlr3.2-3.2/debian/maven-repo
-Dinstall.to.usj=false -Dmaven.test.skip
=true -Duse.maven.repo.local=true -N package install
org.debian.maven:debian-maven-plugin:2.2.1:install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ANTLR Master build control POM 3.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @
antlr-master ---
[INFO] Installing /build/antlr3.2-3.2/pom.xml to
/build/antlr3.2-3.2/debian/maven-repo/org/antlr/antlr-master/3.2/antlr-master-3.2.pom
[INFO]
[INFO] --- debian-maven-plugin:2.2.1:install (default-cli) @ antlr-master ---
[WARNING] The POM for junit:junit:jar:4.x is missing, no dependency
information available
[INFO] Cleaning pom file: /build/antlr3.2-3.2/pom.xml.save with options:
[INFO]  --keep-pom-version --package=antlr3.2
[INFO]  --rules=/build/antlr3.2-3.2/debian/maven.rules
[INFO]  --ignore-rules=/build/antlr3.2-3.2/debian/maven.ignoreRules
[INFO]  --published-rules=/build/antlr3.2-3.2/debian/maven.publishedRules
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.441 s
[INFO] Finished at: 2017-06-30T02:16:23Z
[INFO] Final Memory: 7M/150M
[INFO] ------------------------------------------------------------------------
cd runtime/Java        && 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=/build/antlr3.2-3.2/debian/m
aven.properties -Dclassworlds.conf=/etc/maven/m2-debian.conf
-Dmaven.home=/usr/share/maven
-Dmaven.multiModuleProjectDirectory=/build/antlr3.2-3.2
org.codehaus.plexus.classworlds.launcher.Launcher
-s/etc/maven/settings-debian
.xml -Dmaven.repo.local=/build/antlr3.2-3.2/debian/maven-repo
-DbuildNumber="debian-14" -Ddebian.dir=/build/antlr3.2-3.2/debian
-Ddebian.package=antlr3.2
-Dmaven.repo.local=/build/antlr3.2-3.2/debian/maven-repo
-Dinstall.to.u
sj=false -Dmaven.test.skip=true -Duse.maven.repo.local=true package
install org.debian.maven:debian-maven-plugin:2.2.1:install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Antlr 3 Runtime 3.2
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
antlr-runtime ---
[WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy
filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/build/antlr3.2-3.2/runtime/Java/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @
antlr-runtime ---
[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 82 source files to
/build/antlr3.2-3.2/runtime/Java/target/classes
[INFO] /build/antlr3.2-3.2/runtime/Java/src/main/java/org/antlr/runtime/CommonTokenStream.java:
Some input files use unchecked or unsafe operations.
[INFO] /build/antlr3.2-3.2/runtime/Java/src/main/java/org/antlr/runtime/CommonTokenStream.java:
Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources
(default-testResources) @ antlr-runtime ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile)
@ antlr-runtime ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ antlr-runtime ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ antlr-runtime ---
[INFO] Building jar:
/build/antlr3.2-3.2/runtime/Java/target/antlr-runtime-3.2.jar
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
antlr-runtime ---
[WARNING] Using platform encoding (ANSI_X3.4-1968 actually) to copy
filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/build/antlr3.2-3.2/runtime/Java/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @
antlr-runtime ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources
(default-testResources) @ antlr-runtime ---
[INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile)
@ antlr-runtime ---
[INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ antlr-runtime ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ antlr-runtime ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @
antlr-runtime ---
[INFO] Installing
/build/antlr3.2-3.2/runtime/Java/target/antlr-runtime-3.2.jar to
/build/antlr3.2-3.2/debian/maven-repo/org/antlr/antlr-runtime/3.2/antlr-runtime-3.2.jar
[INFO] Installing /build/antlr3.2-3.2/runtime/Java/pom.xml to
/build/antlr3.2-3.2/debian/maven-repo/org/antlr/antlr-runtime/3.2/antlr-runtime-3.2.pom
[INFO]
[INFO] --- debian-maven-plugin:2.2.1:install (default-cli) @ antlr-runtime ---
[WARNING] The POM for junit:junit:jar:4.x is missing, no dependency
information available
[INFO] Cleaning pom file:
/build/antlr3.2-3.2/runtime/Java/pom.xml.save with options:
[INFO]  --keep-pom-version --package=antlr3.2
[INFO]  --rules=/build/antlr3.2-3.2/debian/maven.rules
[INFO]  --ignore-rules=/build/antlr3.2-3.2/debian/maven.ignoreRules
[INFO]  --published-rules=/build/antlr3.2-3.2/debian/maven.publishedRules
[INFO] Install jar file into Maven repo:
/build/antlr3.2-3.2/runtime/Java/target/antlr-runtime-3.2.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.608 s
[INFO] Finished at: 2017-06-30T02:16:27Z
[INFO] Final Memory: 17M/249M
[INFO] ------------------------------------------------------------------------
cd tool                && 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=/build/antlr3.2-3.2/debian/m
aven.properties -Dclassworlds.conf=/etc/maven/m2-debian.conf
-Dmaven.home=/usr/share/maven
-Dmaven.multiModuleProjectDirectory=/build/antlr3.2-3.2
org.codehaus.plexus.classworlds.launcher.Launcher
-s/etc/maven/settings-debian
.xml -Dmaven.repo.local=/build/antlr3.2-3.2/debian/maven-repo
-DbuildNumber="debian-14" -Ddebian.dir=/build/antlr3.2-3.2/debian
-Ddebian.package=antlr3.2
-Dmaven.repo.local=/build/antlr3.2-3.2/debian/maven-repo
-Dinstall.to.u
sj=false -Dmaven.test.skip=true -Duse.maven.repo.local=true package
install org.debian.maven:debian-maven-plugin:2.2.1:install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ANTLR Grammar Tool 3.2
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for junit:junit:jar:4.x is missing, no dependency
information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.202 s
[INFO] Finished at: 2017-06-30T02:16:28Z
[INFO] Final Memory: 6M/150M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project antlr: Could not resolve
dependencies for project org.antlr:antlr:jar:3.2: Cannot access
antlr-snapshot (http://antlr.org/antlr-snapshot) in offline mode and
the artifact junit:junit:
jar:4.x has not been downloaded from it before. -> [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/DependencyResolutionException
debian/rules:21: recipe for target 'before-mvn-build' failed
make: *** [before-mvn-build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
-- 
Daniel Schepler



More information about the pkg-java-maintainers mailing list