ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sagun <Sagun.Sha...@Sun.COM>
Subject publishing artifact
Date Wed, 18 Jun 2008 01:23:34 GMT
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

Mime
View raw message