Bug#814728: joptsimple: FTBFS with locally rebuilt packages: Missing Build-Depends on ant

Daniel Schepler dschepler at gmail.com
Sun Feb 14 17:53:13 UTC 2016


Source: joptsimple
Version: 4.5-2
Severity: important

>From my pbuilder build log, using a setup with apt pointed to a repository of
locally rebuilt packages:

...
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=/build/joptsimple-4.5/debian/maven.properties -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/build/joptsimple-4.5 org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Dmaven.repo.local=/build/joptsimple-4.5/debian/maven-repo  package -DskipTests
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building JOpt Simple 4.5
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.ant:ant:jar:debian is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.166 s
[INFO] Finished at: 2016-02-13T20:21:03+00:00
[INFO] Final Memory: 6M/150M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project jopt-simple: Could not resolve dependencies for project net.sf.jopt-simple:jopt-simple:jar:4.5: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.ant:ant:jar:debian 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
/usr/share/cdbs/1/class/maven.mk:92: recipe for target 'mvn-build' failed
make: *** [mvn-build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Upon investigation, the reason ant was pulled in before was because velocity
currently depends on it.  However, a rebuilt velocity package will no longer
have this dependency - and according to the commentary on #814679 the
smaller set of dependencies for velocity is actually the correct one.
-- 
Daniel Schepler



More information about the pkg-java-maintainers mailing list