When we make an Ivy release, we also publish Ivy to the Apache Nexus Repository. We use <ivy:publish> for this. As far a I know we don't update the maven-metadata.xml, it seems to happen automatically by Nexus?
Here is the build file we use: http://svn.apache.org/repos/asf/ant/ivy/core/trunk/build-release.xml The target for uploading to nexus is 'upload-nexus'. Maarten ________________________________ Van: David Weintraub <qazw...@gmail.com> Aan: ivy-user@ant.apache.org Verzonden: woensdag 12 februari 16:55 2014 Onderwerp: Re: Publishing into Nexus repository - metadata not updated We don't use `<ivy:publish>` because it's not entirely Maven compatible. We use `<ivy:makepom>` to build the pom, then use Jenkins' Promote Build Plugin to use `mvn deploy` to push the artifact into the repository. We actually build two poms: A pom-snapshot.xml and a pom.xml. After a good build, Jenkins automatically uses pom-snapshot.xml to publish our jar into the Maven snapshot repository. Later on, developers can "promote" a build manually to publish the jar using pom.xml to our standard repository. -- David Weintraub qazw...@gmail.com perl -e 'print "Just another second rate Perl Hacker\n";' On Feb 12, 2014, at 9:08 AM, gillo...@free.fr wrote: > Hi, > > > I have a Maven project which has a dependency on an ANT project (different > svn repositories). > > I usually package my Ant project, upload it manually into my Nexus repository > and update my pom with the new version number. > This ANT project can have a lot (like 10) releases a day and doing this > process manually is a mess. > > I try to use Ivy for publishing this artifact into Nexus automatically and it > works :) > > The only problem is that maven-metadata.xml file in Nexus is not updated by > Ivy when publishing my jar, so my Maven project does not take the lastest > release version. > > > Is there a way for Ivy to trigger an update of the maven-metadata.xml file > into Nexus ? Or is my publish process wrong ? > > > my publish targetĀ : > > <ivy:publish resolver="nexus-deploy" revision="${artifact.version}" > overwrite="false" > artifactspattern="${dist.dir}/[artifact](-[classifier]).[ext]" > publishivy="true"> > </ivy:publish> > > > my resolver : > > <url name="nexus-deploy" m2compatible="true" > > <artifact pattern="${url.nexus.releases}/${ivy.pattern}"/> > </url> > > > > Thanks, > > Gil > > (Sorry if make some english mistake, it's not my native language :[ )