- 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

Reply via email to