On 22/09/2011 15:17, Geoff Clitheroe wrote:
You most probably need to set your resolvers to be Maven compatible
(in your settings file) e.g.,

        <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"/>

                <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>

http://ant.apache.org/ivy/history/latest-milestone/resolver/url.html

There is a complete settings file here

http://codegeo.org/repos/codegeo/build/trunk/ivysettings.xml


Thanks but I am using the ibiblio resolvers and everything else works perfectly. I do not publish the Ivy file however, instead I create a POM and publish that. My publications element is of the form:

<publications>
   <artifact/>
   <artifact type="pom" ext="pom" />
   <artifact type="config" conf="config" ext="jar" e:classifier="config"/>
</publications>

It seems to me that Ivy for some reason is looking for module-config.pom and when it cannot find it refuses to download the updated config jar. Yet it downloads the sources and javadoc fine.

The log always shows the config jar as NOT REQUIRED, in spite of showing the correct url where the jar resides.

Reply via email to