You should specify the srcivypattern attribute in your ivy:publish task so that
Ivy knows where to find your ivy.xml file
Maarten
----- Original Message ----
From: Simon Lin <noisebar@gmail.com>
To: ivy-user@ant.apache.org
Sent: Tue, August 10, 2010 7:14:29 PM
Subject: ivy:publish keeps looking for jar file
Hi all,
I'm trying to publish a .lib file to a repository. But I keep getting error
message saying that the jar file can't be found. Here is the content of
ivy.xml:
<ivy-module version="2.0">
<info organisation="bfg" module="libcurl" revision="7.19.7" />
<publications>
<artifact name="libcurl" ext="lib" type="lib" />
</publications>
</ivy-module>
Here is the Ant publish task:
<target name="publish">
<ivy:resolve />
<ivy:publish resolver="artifactory-publish" revision="7.19.7"
organisation="bfg" module="libcurl">
<artifacts pattern="target/[artifact].[ext]" />
</ivy:publish>
</target>
Am I missing something here?
Thanks.
|