You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by sagun <Sa...@Sun.COM> on 2008/06/18 03:23:34 UTC
publishing artifact
Hi,
I'm new in ivy world so bear with me.
I'm trying to publish an artifact to a local repository. For the version
number I'm using the svn version number as the 'pubrevision' number.
But when I run my publish target I get:
publish:
[property] Loading /build/classes/revisiontag.properties
[delete] Deleting:
/export/builds/ss150715/ucswift/trunk/Common/ConfigService/dist/ivy.xml
[ivy:publish] :: delivering :: ucswift#ConfigService;working@ghandruk ::
1531
[ivy:publish] :: release :: Tue Jun 17 21:13:30 EDT 2008
[ivy:publish] options = status=release pubdate=Tue Jun 17 21:13:30 EDT
2008 validate=true resolveDynamicRevisions=true resolveId=null
[ivy:publish] delivering ivy file to
trunk/Common/ConfigService/dist/ivy.xml
[ivy:publish] deliver done (29ms)
[ivy:publish] :: publishing :: ucswift#ConfigService
[ivy:publish] validate = true
BUILD FAILED
trunk/Common/ConfigService/build.xml:92: impossible to publish artifacts
for ucswift#ConfigService;working@ghandruk:
java.lang.IllegalArgumentException: cannot publish
trunk/Common/ConfigService/dist/ivy.xml as 1531
: bad revision found in ivy file (Revision: 1531 ). Use forcedeliver or
update.
here is my 'publish' target:
<target name="publish" depends="jar" description="--> publish this
project in the r
<property file="${classes.dir}/revisiontag.properties" />
<property name="revision" value="${last.revision}"/>
<delete file="${dist.dir}/ivy.xml"/>
<ivy:publish artifactspattern="${dist.dir}/[artifact].[ext]"
resolver="ucswift-repos"
pubrevision="${revision}"
forcedeliver="true"
status="release" />
</target>
Any help?
Thanks,
Sagun