ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leon Rosenberg <rosenberg.l...@gmail.com>
Subject Publishing from IVY to Maven/Sonatype Nexus
Date Mon, 30 Aug 2010 16:13:24 GMT
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;working@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

Mime
View raw message