Here are the steps you'll need to follow to get Maven 2 working with the Codehaus's WebDav system.
The M2 repository ID is automatically configured when your project is created. In the event you need to change it, please contact Support to get them to change it.
There are many downstream effects and we need to review non-standard IDs.
The repository is automatically synchronized with the main Maven repository on a 4 hourly schedule.
Then you'll need to tell the <build> section about the Wagon WebDAV plugin:
<build> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-webdav</artifactId> <version>1.0-beta-1</version> </extension> </extensions> ... </build>
Next you'll need to update your distributionManagement section:
<distributionManagement> <repository> <id>codehaus.org</id> <name>XFire Central Repository</name> <url>dav:https://dav.codehaus.org/repository/xfire/</url> </repository> <snapshotRepository> <id>codehaus.org</id> <name>XFire Central Development Repository</name> <url>dav:https://dav.codehaus.org/snapshots.repository/xfire/</url> </snapshotRepository> <site> <id>codehaus.org</id> <url>dav:https://dav.codehaus.org/xfire/</url> </site> </distributionManagement>
Note: the trailing slash is important; otherwise Apache will send 301 redirects that confuse the Maven WebDAV plugin.
You should only put these in your root POM in a multi-module project. If you put the same settings in a child POM, that child would overwrite the files at this location. You can either inherit it using Maven's parent mechanism (which will automatically append the artifactId to the URL), or you can specify as above but change the individual paths to the location you'd like the files deployed to.
Then you'll need to tell maven's settings.xml file about your username and password (this file belongs in ~/.m2):
<settings> <servers> <server> <id>codehaus.org</id> <username>USERNAME</username> <password>PASSWORD</password> </server> </servers> </settings>
Finally, Before you can upload via HTTPS you'll need to add the AddTrust CA certificate (the issuer of the Codehaus certificate). To do this, follow the instructions at the bottom of the WebDAV page.
You must configure a repository ID is set.
Now you can use the normal maven deploy command:
$ mvn deploy
Your SNAPSHOT repository will be viewable at: http://snapshots.repository.codehaus.org/
Your release repository will viewable at: http://repository.codehaus.org/
You will need to navigate down to the appropriate location for your artifacts.