On Wed, Aug 5, 2009 at 7:49 AM, Joshua
Tharp<[email protected]> wrote:
> Shouldn't your org be org.apache.commons?

There is commons-lang/commons-lang/2.* on central.

Paul, what resolvers are you using?  Can you post you settings files.
The ivy.xml file tells Ivy about your project and it dependencies, the
settings tell Ivy where to try to get the dependencies from.

You will need a resolver for your repo and one that can get
common-lang i.e., a maven resolver for central.

Some of my settings are below, this adds our repos and java.net to the
shared chain which already has the default resolvers (including
maven).

Cheers,
Geoff

<?xml version="1.0" encoding="UTF-8"?>
<ivysettings>
        <property name="ivy.shared.m2.ivy.pattern"
                
value="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
                override="false"/>

        <property name="ivy.shared.m2.artifact.pattern"
                
value="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
                override="false"/>

        <property name="geonet.repo" value="http://url.to.repo"; 
override="false"/>



        <resolvers>

                <url name="geonet-enterprise-manual-http" m2compatible="true">
                        <ivy 
pattern="${geonet.repo}/manual/${ivy.shared.m2.ivy.pattern}"/>
                        <artifact 
pattern="${geonet.repo}/manual/${ivy.shared.m2.artifact.pattern}"/>
                </url>

                <url name="geonet-enterprise-enterprise-http" 
m2compatible="true">
                        <ivy 
pattern="${geonet.repo}/enterprise/${ivy.shared.m2.ivy.pattern}"/>
                        <artifact 
pattern="${geonet.repo}/enterprise/${ivy.shared.m2.artifact.pattern}"/>
                </url>

                <url name="java.net" m2compatible="true">
                        <ivy 
pattern="http://download.java.net/maven/2/${ivy.shared.m2.ivy.pattern}"/>
                        <artifact 
pattern="http://download.java.net/maven/2/${ivy.shared.m2.artifact.pattern}"/>
                </url>

                <!-- this resolver is included here only for getting
build numbers
                     is it not made part of the chain -->
                <url name="geonet-enterprise-publish-http">
                        <ivy 
pattern="${geonet.repo}/publish/${ivy.shared.m2.ivy.pattern}"/>
                        <artifact 
pattern="${geonet.repo}/publish/${ivy.shared.m2.artifact.pattern}"/>

                </url>

                <chain name="shared" returnFirst="true">
                        <resolver ref="geonet-enterprise-enterprise-http"/>
                        <resolver ref="geonet-enterprise-manual-http"/>
                        <resolver ref="java.net"/>
                </chain>

        </resolvers>
</ivysettings>

Reply via email to