Bug#769804: jarjar-maven-plugin: FTBFS against rebuilt packages: Failed to resolve artifact ant

Daniel Schepler dschepler at gmail.com
Sun Nov 16 15:51:58 UTC 2014


Source: jarjar-maven-plugin
Version: 1.9-2
Severity: important

In my locally rebuilt repository, ant is no longer automatically pulled in by
the Build-Depends of jarjar-maven-plugin (with the official package builds, it's
pulled in by velocity).  As a result, I'm getting this error in the build:

...
cd . && /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven2/boot/classworlds.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dproperties.file.manual=/tmp/buildd/jarjar-maven-plugin-1.9/debian/maven.properties -Dclassworlds.conf=/etc/maven2/m2-debian.conf org.codehaus.classworlds.Launcher -s/etc/maven2/settings-debian.xml -Dmaven.repo.local=/tmp/buildd/jarjar-maven-plugin-1.9/debian/maven-repo  package
[INFO] 
NOTE: Maven is executing in offline mode. Any artifacts not already in your local
repository will be inaccessible.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building JarJar Maven Plugin
[INFO]    task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.ant:ant:jar:debian

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.apache.ant -DartifactId=ant -Dversion=debian -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.apache.ant -DartifactId=ant -Dversion=debian -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
        1) org.sonatype.plugins:jarjar-maven-plugin:maven-plugin:1.9
        2) org.apache.ant:ant:jar:debian

----------
1 required artifact is missing.

for artifact: 
  org.sonatype.plugins:jarjar-maven-plugin:maven-plugin:1.9

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)



NOTE: Maven is executing in offline mode. Any artifacts not already in your local
repository will be inaccessible.


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Nov 11 18:19:57 UTC 2014
[INFO] Final Memory: 7M/149M
[INFO] ------------------------------------------------------------------------
/usr/share/cdbs/1/class/maven.mk:87: recipe for target 'mvn-build' failed
make: *** [mvn-build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2

(I've verified that pbuilder build velocity using all official packages results
in a package with Depends: libcommons-collections3-java, libcommons-lang-java
(>= 2.6).  If that's incorrect, feel free to correct the issue in
maven-debian-helper and then close this bug.)
-- 
Daniel Schepler



More information about the pkg-java-maintainers mailing list