ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maarten Coene <maarten_co...@yahoo.com>
Subject Re: enabling webdav support
Date Mon, 08 Mar 2010 22:35:53 GMT
Could you try to run ant in verbose mode (ant -v) and post the console log?

Maarten




----- Original Message ----
From: Mandie Smith <mandie@houseofgnomes.net>
To: ivy-user@ant.apache.org
Sent: Mon, March 8, 2010 11:18:31 PM
Subject: Re: enabling webdav support

- I downloaded and compiled commons-vfs from source and added that to my ant
classpath.

- I edited the file
src/java/org/apache/ivy/plugins/repository/vfs/ivy_vfs.xml from the 2.1.0
tag of ivy and added the following provider:
    <provider
class-name="org.apache.commons.vfs.provider.webdav.WebdavFileProvider">
        <scheme name="webdav"/>
        <if-available class-name="org.apache.jackrabbit.jackrabbit-webdav"
/>
    </provider>

- I recompiled the ivy jar and placed that in my ant classpath

- I also had to add the jackrabbit-webdav jar and commons-logging jar to my
classpath

- This is where I'm not sure what to do, I've tried adding the following
resolver, but I'm getting errors:

    <vfs name="write-snapshots-module" m2compatible="true">
      <artifact
pattern="webdav://${ivy.repository.hostname}/archiva/repository/snapshots/${ivy.default.artifact.pattern}"
/>
      <ivy
pattern="webdav://${ivy.repository.hostname}/archiva/repository/snapshots/${ivy.default.ivy.pattern}"
/>
    </vfs>


This is the error:

impossible to publish artifacts for
organization#artifact;3.1.0.128.20100308171455:
java.lang.IllegalArgumentException: invalid vfs uri
webdav://hostname/archiva/repository/snapshots/organization/artifact/3.1.0.128.20100308171455/artifact-3.1.0.128.20100308171455.pom
to put data to: resource has no content



      

Mime
View raw message