i am trying to use a locally built version of ivy in place of 1.4.1. i run "ant 
install" and it copies ivy.jar into ~/.ivy/jars ... ok all is good so far. the 
only change i made was ivyconf to ivysettings, as it said the former is 
deprecated.

when i run my ant project that uses ivy, it doesn't appear to be using any of 
the resolvers i set up. it just fails to find them (no delay, as if it was 
going through my chain checking). the output is below.

has something changed in 2.x? i don't see any relevant errors ... i attached my 
ivysettings.xml.  

Buildfile: build.xml

init-ivy-user-home:

init-ivy-local-home:

init-ivy-jar:

init-ivy-home:

download-ivy:
      [get] Getting: http://people.apache.org/~antoine/ivy/ivy-1.4.1.jar
      [get] To: /Users/jtb/.ivy/jars/ivy.jar
      [get] Not modified - so not downloaded

check-ivy-available:

init-ivy:
   [antlib] EMMA: collecting runtime coverage data ...

init:
[ivy:configure] Loading 
jar:file:/Users/jtb/.ivy/jars/ivy.jar!/org/apache/ivy/core/settings/ivy.properties
[ivy:configure] :: Ivy 2.0.0-alpha-1-incubating-local-20070420160130 - 
20070420160130 :: http://incubator.apache.org/ivy/ ::
[ivy:configure] :: loading settings :: file = 
/Users/jtb/src/dependencies/ivysettings.xml

install-external:
[ivy:install] :: installing [ com.sun.dsame | sdk | 7.0 ] ::
[ivy:install] :: resolving dependencies ::
[ivy:install] :: downloading artifacts to cache ::
[ivy:install] :: installing in local ::
[ivy:install] :: install resolution report ::
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   1   |   0   |   0   |   0   ||   0   |   0   |
        ---------------------------------------------------------------------

BUILD FAILED
/Users/jtb/src/dependencies/build.xml:12: install failed - see output for 
details

Total time: 4 seconds
EMMA: runtime coverage data merged into 
[/Users/jtb/src/dependencies/coverage.ec] {in 152 ms}

       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.
<?xml version="1.0" encoding="UTF-8"?>
<ivysettings>
    <property name="ibiblio-maven2-root" value="http://www.ibiblio.org/maven2/"; override="false" />
    <property name="ibiblio-maven2-pattern" value="[organisation]/[module]/[revision]/[module]-[revision].[ext]" override="false" />
    <property name="ibiblio-maven-root" value="http://www.ibiblio.org/maven/"; override="false" />
    <property name="ibiblio-maven-pattern" value="[module]/[type]s/[artifact]-[revision].[ext]" override="false" />

    <property name="java-net-maven2-pattern" value="https://maven2-repository.dev.java.net/nonav/repository/[organisation]/[module]/[revision]/[module]-[revision].[ext]"; override="false" />
    <property name="java-net-maven-pattern" value="https://maven-repository.dev.java.net/nonav/repository/[module]/[type]s/[artifact]-[revision].[ext]"; override="false" />
 
    <property name="portal-maven2-pattern" value="https://portal.dev.java.net/nonav/repository/[organisation]/[module]/[revision]/[module]-[revision].[ext]"; override="false" />
    
    <property name="local-maven2-pattern" value="file:${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision].[ext]" override="false" />
    
    <resolvers>
        <chain name="chain" returnFirst="true">            
            <filesystem name="local">
                <ivy pattern="${repository.dir}/[organisation]/[module]/ivys/ivy-[revision].xml"/>
                <artifact pattern="${repository.dir}/[organisation]/[module]/[revision]/[module]-[revision].[ext]"/>
            </filesystem>
            <url name="local-maven2" m2compatible="true">
                <artifact pattern="${local-maven2-pattern}"/>
            </url> 
            <ibiblio	
                name="ibiblio-maven" 
                root="${ibiblio-maven-root}" 
                pattern="${ibiblio-maven-pattern}"
                m2compatible="false"
            />            
            <ibiblio	
                name="ibiblio-maven2" 
                root="${ibiblio-maven2-root}" 
                pattern="${ibiblio-maven2-pattern}"
                m2compatible="true"
            />
            <url name="java-net-maven">
                <artifact pattern="${java-net-maven-pattern}"/>                
            </url>  
            <url name="java-net-maven2" m2compatible="true">
                <artifact pattern="${java-net-maven2-pattern}"/>                
            </url>  
            <url name="portal-maven2" m2compatible="true">
                <artifact pattern="${portal-maven2-pattern}"/>                
            </url>  
        </chain>
    </resolvers>
</ivysettings>

Reply via email to