ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yesudeep <yesud...@gmail.com>
Subject How to add a packager resolver without overriding existing defaults?
Date Mon, 04 Jan 2010 08:38:32 GMT
Hi.  I'm trying to define a project specific ivysettings.xml file
with these contents:

<?xml version="1.0" encoding="utf-8" ?>
<ivysettings>
    <resolvers>
        <packager name="ivyroundup"
buildRoot="${user.home}/.ivy2/packager/build"
resourceCache="${user.home}/.ivy2/packager/cache">
            <ivy pattern="
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/ivy.xml
"/>
            <artifact pattern="
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/[organisation]/[module]/[revision]/packager.xml
"/>
        </packager>
        <packager name="gwt-maven-repo"
buildRoot="${user.home}/.ivy2/packager/build"
resourceCache="${user.home}/.ivy2/packager/cache">
            <ivy pattern="
http://gwt-maven-repo.googlecode.com/svn/trunk/modules/[organisation]/[module]/[revision]/ivy.xml
"/>
            <artifact pattern="
http://ivyroundup.googlecode.com/svn/trunk/modules/[organisation]/[module]/[revision]/packager.xml
"/>
        </packager>
    </resolvers>
    <modules>
        <module organisation="com.google" name=".*"
resolver="gwt-maven-repo" />
        <module organisation=".*" name=".*" resolver="ivyroundup" />
    </modules>
    <caches useOrigin="true"/>
</ivysettings>

However, doing that causes other resolutions that were working normally
earlier
to break.  Now while I can get the jars present in those two repositories,
I'm unable to satisfy
other dependencies which are resolvable using the default resolvers.

This is the build error output:

mia:chocolate yesudeep$ ant resolve
Buildfile: build.xml

download-ivy:
      [get] Getting:
http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
      [get] To: /Users/yesudeep/.ant/lib/ivy.jar
      [get] Not modified - so not downloaded

init-ivy:

resolve:
[ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/::
[ivy:retrieve] :: loading settings :: file =
/Users/yesudeep/code/chocolate/ivysettings.xml
[ivy:retrieve] :: resolving dependencies ::
com.happychickoo#chocolate;working@mia.local
[ivy:retrieve] confs: [runtime, compile, all, sdk, test]
[ivy:retrieve] found com.google#guice;2.0 in gwt-maven-repo
[ivy:retrieve] :: resolution report :: resolve 8950ms :: artifacts dl 995ms
---------------------------------------------------------------------
|                  |            modules            ||   artifacts   |
|       conf       | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
|      runtime     |   1   |   0   |   0   |   0   ||   0   |   0   |
|      compile     |   2   |   0   |   0   |   0   ||   0   |   0   |
|        all       |   3   |   0   |   0   |   0   ||   2   |   0   |
|        sdk       |   2   |   0   |   0   |   0   ||   0   |   0   |
|       test       |   1   |   0   |   0   |   0   ||   0   |   0   |
---------------------------------------------------------------------
[ivy:retrieve]
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve] module not found: com.google.gwt#gwt-servlet;2.0.0
[ivy:retrieve] ==== ivyroundup: tried
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/com.google.gwt/gwt-servlet/2.0.0/ivy.xml
[ivy:retrieve]   -- artifact
com.google.gwt#gwt-servlet;2.0.0!gwt-servlet.jar:
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/com.google.gwt/gwt-servlet/2.0.0/packager.xml
[ivy:retrieve] module not found: javax.servlet#servlet-api;2.5
[ivy:retrieve] ==== ivyroundup: tried
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/javax.servlet/servlet-api/2.5/ivy.xml
[ivy:retrieve]   -- artifact javax.servlet#servlet-api;2.5!servlet-api.jar:
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/javax.servlet/servlet-api/2.5/packager.xml
[ivy:retrieve] module not found:
com.google.collections#google-collections;1.0-rc5
[ivy:retrieve] ==== ivyroundup: tried
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/com.google.collections/google-collections/1.0-rc5/ivy.xml
[ivy:retrieve]   -- artifact
com.google.collections#google-collections;1.0-rc5!google-collections.jar:
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/com.google.collections/google-collections/1.0-rc5/packager.xml
[ivy:retrieve] module not found: aopalliance#aopalliance;1.0
[ivy:retrieve] ==== ivyroundup: tried
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/aopalliance/aopalliance/1.0/ivy.xml
[ivy:retrieve]   -- artifact aopalliance#aopalliance;1.0!aopalliance.jar:
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/aopalliance/aopalliance/1.0/packager.xml
[ivy:retrieve] module not found:
com.google.inject.extensions#guice-servlet;2.0
[ivy:retrieve] ==== ivyroundup: tried
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/com.google.inject.extensions/guice-servlet/2.0/ivy.xml
[ivy:retrieve]   -- artifact
com.google.inject.extensions#guice-servlet;2.0!guice-servlet.jar:
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/com.google.inject.extensions/guice-servlet/2.0/packager.xml
[ivy:retrieve] module not found: com.google.gwt#gwt-user;2.0.0
[ivy:retrieve] ==== ivyroundup: tried
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/com.google.gwt/gwt-user/2.0.0/ivy.xml
[ivy:retrieve]   -- artifact com.google.gwt#gwt-user;2.0.0!gwt-user.jar:
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/com.google.gwt/gwt-user/2.0.0/packager.xml
[ivy:retrieve] module not found: com.google.gwt#gwt-dev;2.0.0
[ivy:retrieve] ==== ivyroundup: tried
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/com.google.gwt/gwt-dev/2.0.0/ivy.xml
[ivy:retrieve]   -- artifact com.google.gwt#gwt-dev;2.0.0!gwt-dev.jar:
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/com.google.gwt/gwt-dev/2.0.0/packager.xml
[ivy:retrieve] module not found: junit#junit;4.7
[ivy:retrieve] ==== ivyroundup: tried
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/junit/junit/4.7/ivy.xml
[ivy:retrieve]   -- artifact junit#junit;4.7!junit.jar:
[ivy:retrieve]
http://ivyroundup.googlecode.com/svn/trunk/repo/modules/junit/junit/4.7/packager.xml
[ivy:retrieve] [NOT FOUND  ] com.google#guice;2.0!javadoc.zip(javadoc)
(992ms)
[ivy:retrieve] ==== gwt-maven-repo: tried
[ivy:retrieve]
http://gwt-maven.repo.googlecode.com/svn/trunk/modules/com.google/guice/2.0/packager.xml
[ivy:retrieve] [NOT FOUND  ] com.google#guice;2.0!guice.jar (0ms)
[ivy:retrieve] ==== gwt-maven-repo: tried
[ivy:retrieve]
http://gwt-maven.repo.googlecode.com/svn/trunk/modules/com.google/guice/2.0/packager.xml
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] ::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: com.google.gwt#gwt-servlet;2.0.0: not found
[ivy:retrieve] :: javax.servlet#servlet-api;2.5: not found
[ivy:retrieve] :: com.google.collections#google-collections;1.0-rc5: not
found
[ivy:retrieve] :: aopalliance#aopalliance;1.0: not found
[ivy:retrieve] :: com.google.inject.extensions#guice-servlet;2.0: not found
[ivy:retrieve] :: com.google.gwt#gwt-user;2.0.0: not found
[ivy:retrieve] :: com.google.gwt#gwt-dev;2.0.0: not found
[ivy:retrieve] :: junit#junit;4.7: not found
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] ::              FAILED DOWNLOADS            ::
[ivy:retrieve] :: ^ see resolution messages for details  ^ ::
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve] :: com.google#guice;2.0!javadoc.zip(javadoc)
[ivy:retrieve] :: com.google#guice;2.0!guice.jar
[ivy:retrieve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
/Users/yesudeep/code/chocolate/build.xml:69: impossible to resolve
dependencies:
resolve failed - see output for details

Total time: 11 seconds

I'd be grateful for any advice or help.

Thanks.
-- 
Cheers,
Yesudeep Mangalapilly | येसुदीप मंगलािपल्ली
GnuPG: 0x79E237CB | IRC: jburd

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message