>
> Plain PUT does not work if the directory doesn't exist yet. (That's part
> of the HTTP spec).
> You need something to create the directory (or "Collection" in WebDAV
> Terms), this is the MKCOL method.
>
> While it is true that FTP is also a provider, it should be painfully
> obvious that all existing repository manager implementations support
> WebDAV.  And it's a favorite deployment technique in corporate
> environments for the security aspects alone.
>
> Sure you could accomplish the same thing with SSH, but how many people
> do you find asking for deploy:deploy-file with ssh in the users list?
> In many corporations I've been involved in SSH is fine for many tasks,
> but not repository management for the rank and file or for the
> continuous integration server.  (Typically due to political and
> maintenance reasonsnot for technical ones)
>
> We have clear trend established with the users (in the mailing list and
> jira) that webdav is a popular choice, and the deploy:deploy-file is
> painful without it being in core, and also no option to build a custom
> client with it embedded (classloader yech, yada yada).  bringing it in
> via the command line isn't an option.  So we're left with creating a pom
> just to use deploy:deploy-file with webdav.


It's exaclty the problem we are confroted with at the moment.
It's a real pain for us and we are still looking for a solution.

It's really difficult to manage a maven 2 repository with corporate policy
access.
For instance :
inhouse
   - groupId1 (allow read/write for the team project/ read for all)
   - groupId2 (allow read/write for the team project/ read for all)
inhouse.snapshot
   - groupId1 (allow read/write for the team project/ read for all)
   - groupId2 (allow read/write for the team project/ read for all)

How to do it ?
We first try with the scp/sftp protocol but it's not working (cf.
http://www.nabble.com/-M2--Pb-Release-and-preserve-timestamps-td13626985s177.html#a13626985
).
We now try with the webdav protocol but it's not working because PUT does
not work if the directory doesn't exist yet

If you have a solution, it would be fantastic !

Rémy

Reply via email to