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

Daniel Schepler dschepler at gmail.com
Mon Nov 17 02:16:03 UTC 2014


On Sun, Nov 16, 2014 at 11:26 AM, tony mancill <tmancill at debian.org> wrote:
> I believe what Daniel is saying is that if you rebuild the entire
> dependency chain, ant isn't being pulled in (by velocity).

That's correct.

> Or put another way, there is a difference between the dependency graph
> that exists for the binary build-deps in the archive, and the dependency
> graph created by rebuilding all of the build-deps in the archive from
> source.
>
> Daniel, first, do I have that right, and secondly, is your rebuild on
> jessie or sid?

The rebuild is based on sid.

By the way, after I built maven-jarjar-plugin with ant added, I got a
similar failure building sisu-guice:

[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: 4 seconds
[INFO] Finished at: Sun Nov 16 22:29:05 UTC 2014
[INFO] Final Memory: 17M/344M
[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'm not sure why that's happening, given that as far as I can tell,
the dependency on ant is marked as optional in jarjar-maven-plugin's
pom.xml file.
-- 
Daniel Schepler



More information about the pkg-java-maintainers mailing list