> > I found the instructions here to be useful:
> > http://jira.codehaus.org/browse/MNG-1580
> Webdav is supported now? since when? I was really waiting for that! thank!
Like I said, Maven hates us who don't want to futz with scp or ftp, but
we are smarter than it is!
The following was tested mere moments ago against a freshly downloaded
copy of maven-2.0.2 and some liberal use of the "-U" and "-X" switches.
Full disclosure: I'm not using authentication for WebDAV here, because I
trust the other 22 people I work with. YMMV.
The largest thing is to inject the necessary dependencies into
$M2_HOME/lib, while stripping out wagon-http-lightweight-1.0-alpha-6.jar
I kept chasing ClassNotFounds until it worked with the following:
commons-codec-1.3.jar
commons-httpclient-3.0.jar
commons-logging-1.0.3.jar
wagon-http-1.0-alpha-6.jar
(which I downloaded via wget from ibiblio, just so we're clear)
The 2nd largest "gotcha" is that wagon-http doesn't see it necessary to
MKCOL on all the parent directories before it tries to upload an
artifact. You can use cadaver (or your favorite WebDAV client) to help
it along there.
Now for the mundane parts.
You must declare an "http" <url> in your <distributionManagement> and
include:
<build>
...
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http</artifactId>
<version>1.0-alpha-6</version>
</extension>
</extensions>
</build>
Also, be careful of http://jira.codehaus.org/browse/MNG-734 as that bit
me for the LONGEST time. I had a <snapshotRepository> without having
"-SNAPSHOT" in my <version>. Totally my fault, but the error message was
HORRIBLE. I appended "-SNAPSHOT" and all was well with the world.
HTH all three of the WebDAV users on this list,
-- /v\atthew
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]