I tried out the wagon-cifs extension today (checked out from
http://svn.codehaus.org/mojo/trunk/mojo/maven-extensions/wagon-cifs/pom.xml
- rev 5621).
The extension works fine, but there is one line of code that causes trouble
each time site:deploy moves on to create a new folder:
// This is here just to make sure that we've connected to the server.
basedir.list();
I removed that line (diff attached). Afterwards it worked like a charm.
Thanks for another great extension :)
By the way, for you other sorry windows-users out there, here's a short
how-to:
Use case: I want to deploy to a windows server, and dav'ing is 10 x slower
than xcopy'ing to the box when deploying a site because of the amount of
seperate files.
1) Add credentials and server id to your settings.xml:
...
<server>
<id>cifs-site</id>
<username>domain\\username</username>
<password>password</password>
</server>
...
2) Make sure the user above can access the network drive like this:
\\host\d$\dist\site
(corresponds to d:\dist\site on that machine)
3) Write something like this in your pom:
...
<build>
<extensions>
<extension>
<groupId>org.codehaus.mojo.maven-extensions</groupId>
<artifactId>wagon-cifs</artifactId>
<version>1.0-alpha-1-SNAPSHOT</version>
</extension>
</extensions>
</build>
...
...
<distributionManagement>
<site>
<id>cifs-site</id>
<url>cifs://host/d$/dist/site/my-project-site</url>
</site>
</distributionManagement>
..
and deploy all you like :)
-Ferris