Normally you deploy to a third party repository with a command similar to:
mvn deploy:deploy-file -Dfile=/path/to/file -DrepositoryId=repositoryId -Durl=wagon:protocol://path/to/repo -DgroupId=groupId -DartifactId=artifactId -Dversion=version -Dpackaging=packageType
But - to deploy via webdav needs a snapshot wagon.
To do this - create a temporary pom in the directory you are in (create a scratch dir or similar). This should contain:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>webdav-deploy</artifactId>
<packaging>pom</packaging>
<version>1</version>
<name>Webdav Deployment POM</name>
<build>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-webdav</artifactId>
<version>1.0-beta-2</version>
</extension>
</extensions>
</build>
</project>
(thanks to the maven archiva docs for this pom).
Now - in that directory you can now run something similar to
mvn deploy:deploy-file -Dfile=/path/to/file -DrepositoryId=repositoryId -Durl=dav:protocol://path/to/repo -DgroupId=groupId -DartifactId=artifactId -Dversion=version -Dpackaging=packageType
Comments
Chris, really, don't use
Chris, really, don't use Maven. Every day it causes me pain, or at least the combination of Eclipse and Maven does. It generally takes me half an hour just to get everything building again the way it was the previous day because the two of them don't play with one another nicely regarding refreshing. Basically: PITA.
Not sure what you're doing -
Not sure what you're doing - I (and most of my colleagues) are using maven with eclipse every day with no real issues at all.
No, I'm not sure what we're
No, I'm not sure what we're doing either. Apart from making our lives a f***ing misery. The basic idea was good. Shame about the implementation. Thankfully I had nothing to do with either, so I just go onto tha intahweb and rant about it.
Since everything only gets automatically updated when starting Eclipse the workaround is easy - never switch the computer off and never close Eclipse.