Hi! I'm new to ivy and maven, we have setup a maven2 repository for use
with ivy, and I'm trying to publish my artifacts to it but am having
trouble understanding how to do this.
I'm trying to use the <url> resolver but am getting a
'UnsupportedOperationException: URL repository do not support append
operations at the moment' error.
Heres my ivysettings.xml file:
<ivysettings>
<properties file="${ivy.settings.dir}/ivysettings.properties"/>
<settings defaultCache="${ivy.settings.dir}/ivy-cache"
defaultResolver="projects"/>
<resolvers>
<url name="projects" m2compatible="true">
<ivy
pattern="http://something.fake.com:8081/nexus/content/repositories/hoovers/[module]/[revision]/ivy-[revision].xml"
/>
<artifact
pattern="http://ivyrep.mycompany.com/[module]/[revision]/[artifact]-[revision].[ext]"
/>
<artifact
pattern="http://ivyrep.mycompany.com/[module]/[revision]/[artifact].[ext]"
/>
</url>
<ibiblio name="libraries" m2compatible="true" usepoms="false" />
</resolvers>
<modules>
<module organisation="org.apache" name="dependee" resolver="projects"/>
</modules>
</ivysettings>
And the publish target for my build.xml:
<target name="publish" depends="build" description="--> publish this
project in the ivy repository">
<property name="revision" value="${version}"/>
<delete file="${build.dir}/ivy.xml"/>
<ivy:publish artifactspattern="${build.dir}/[artifact].[ext]"
resolver="projects"
pubrevision="${revision}"
status="release"
/>
<echo message="project ${ant.project.name} released with version
${revision}" />
</target>
Thanks! Any help appreciated.