On 11/9/06, Steve Loughran <[EMAIL PROTECTED]> wrote:
I cannot get ivy1.4.1 to publish my WAR file. Jar files yes, war files no.
According to the console messages it seems that Ivy is trying to publish a
jar and nor a war, but your ivy file snippet is ok. So my guess is that Ivy
is actually using another ivy file.It's difficult to know, Ivy can use the
ivy file it publishes or the ivy file used for the last resolve. So you can
check the
/home/slo/.ivy/local/org.antbook/diary/0.1alpha-SNAPSHOT/ivys/ivy.xml to see
if the publication section is ok. And you can check the cache, and look for
a resolved-xxx.xml file at the root, to see how it looks like.
Xavier
From ivy.xml
<publications>
<!-- the artifact is only produced in the master distro, and it is
a WAR file-->
<artifact conf="master" type="war" ext="war"/>
</publications>
the build log:
ivy-publish:
[ivy:publish] :: publishing :: [ org.antbook | diary ]
[ivy:publish] missing artifact [ org.antbook | diary | 0.1alpha-SNAPSHOT
]/diary.jar[jar]:
[ivy:publish]
/home/slo/Projects/examples/diary/webapp/dist/diary-0.1alpha-SNAPSHOT.jar
file does not exist
[ivy:publish] published ivy to
/home/slo/.ivy/local/org.antbook/diary/0.1alpha-SNAPSHOT/ivys/ivy.xml
BUILD FAILED - at 09/11/06 17:04
/home/slo/Projects/examples/diary/xml/ivy-mixin.xml:44: impossible to
publish artifacts for [ org.antbook | diary | [EMAIL PROTECTED] ]:
missing published artifacts for [ org.antbook | diary | [EMAIL PROTECTED]
]: [[ org.antbook | diary | 0.1alpha-SNAPSHOT ]/diary.jar[jar]]
and the filesystem
webapp> ls -l dist
total 384
drwxr-xr-x 2 slo users 48 2006-11-09 16:32 api
-rw-r--r-- 1 slo users 386998 2006-11-09 16:58 diary0.1alpha-SNAPSHOT.war
drwxr-xr-x 2 slo users 48 2006-11-09 16:32 doc
-rw-r--r-- 1 slo users 1727 2006-11-09 16:56 ivy-0.1alpha-SNAPSHOT.xml