ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mandie Smith <man...@houseofgnomes.net>
Subject Re: enabling webdav support
Date Mon, 08 Mar 2010 22:18:31 GMT
- 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message