Thanks for the link. Do I understand it right, that you publish to url resolver, not to ibiblio resolver? could you paste you ivy:publish call?
thanx Leon On Mon, Aug 30, 2010 at 8:39 PM, Maarten Coene <maarten_co...@yahoo.com> wrote: > Did you specify the credentials in your ivysettings.xml? > > When creating a new Ivy release, we also publish this new version to Nexus > using > Ivy. > The ivysettings.xml for this can be found here: > http://svn.apache.org/viewvc/ant/ivy/core/trunk/ivysettings-release.xml?revision=988707&view=markup > > > Maarten > > > > > > ----- Original Message ---- > From: Leon Rosenberg <rosenberg.l...@gmail.com> > To: ivy-user@ant.apache.org > Sent: Mon, August 30, 2010 6:13:24 PM > Subject: Publishing from IVY to Maven/Sonatype Nexus > > Hello, > > we've been using ivy + ant for a long time and love ivy. Usually we > store ivy repositories in svn and our ant scripts check them out and > trigger resolve. > However, one of our customers is using our build scripts and wants to > use Nexus. We've managed to resolve/download from Nexus sofar, but we > can't just publish to it. > > What have we tried sofar: > > ivy.seetings: > > > <resolvers> > <ibiblio name="nexus" m2compatible="true" > root="http://maven/nexus/content/groups/provided"> > </ibiblio> > <filesystem name="xxx"> > <ivy pattern="${ivy.xxx.default.root}/${ivy.shared.default.ivy.pattern}" > /> > <artifact > pattern="${ivy.xxx.default.root}/${ivy.shared.default.artifact.pattern}" > /> > </filesystem> > <filesystem name="shared"> > <ivy > pattern="${ivy.shared.default.root}/${ivy.shared.default.ivy.pattern}" > /> > <artifact > pattern="${ivy.shared.default.root}/${ivy.shared.default.artifact.pattern}" > /> > </filesystem> > </resolvers> > > we also tried: > > in the ant file: > <target name="ivy-publish.nexus" > > <ivy:publish overwrite="true" > artifactspattern="${dist.dir}/[artifact].[ext]" > resolver="nexus" > pubrevision="1" > /> > </target> > > BUILD FAILED > /Users/another/projects/xxx/xxx-build/include/ivy-customization.xml:101: > impossible to publish artifacts for xxx.com#xxx;work...@colin.local: > java.io.IOException: Access to URL > http://maven/nexus/content/groups/provided/xxx/com/xxx/1/xxx-1.jar was > refused by the server: Unauthorized > > > We also tried to publish via > <url name="publish-repo"> > <!-- You can use m2compatible="true" instead of specifying > your own pattern --> > <artifact pattern= > > "http://maven/nexus/content/groups/provided/[organization]/[module]/[revision]/[artifact]-[revision].[ext]"/> > > <ivy > pattern="http://maven/nexus/content/groups/provided/[organization]/[module]/[revision]/ivy-[revision].xml" > > /> > </url> > > but without effect. > > I would be very grateful, if someone could provide some sniplets of > working publish ant-code. > > thanx in advance > > Leon > > > > >