I was able to configure maven to automatically download the latest snapshot of our software into our public maven repository. While this works great, there is only a minor flaw that I just can't handle:
When you deploy a new snapshot, say, for example: a
<version>1.2-SNAPSHOT</version>
directory with a name 1.2-SNAPSHOTmust be present in our maven web server directory, otherwise maven will fail by indicating:
Failed to deploy artifacts: Could not transfer artifact ... from/to basex.mvn
(http://abc.de/webdav/): Access denied to: http://abc.de/webdav/1.2-SNAPSHOT/...
As usual, when starting a new snapshot, this same directory does not exist yet, so I create it manually.
Do you have any ideas on how to get around this and create maven to create this folder?
source
share