I had to find a way to deploy javadoc towards a server. So I found out that the maven site has a reporting plugin for javadocs. To get all this working on windows follow these steps:
We need SSH so I installed cygwin with the following modules:
openssh
tcp_wrappers
zlip
unzip
After installation of cygwin run it and on the console execute the following command to import your windows system users into cygwin:
mkpasswd -cl > /etc/passwd
mkgroup --local > /etc/group
If you are logging on to a domain you’ll probably need to modify the /etc/group file to match the group ids with /etc/passwd.
Now you can start the SSH server with the following command from within cygwin (don’t know if altering users config requires restart of cygwin?):
net start sshd
And now you can go back to maven to deploy your site. Maven needs the following configuration. Edit POM to contain:
website
scp://localhost/cygdrive/c/PATH_TO_TOMCAT/webapps/mvnsites/${project.version}
org.apache.maven.plugins
maven-javadoc-plugin
Then execute the following goals:
mvn javadoc:javadoc
mvn site:site
mvn site:deploy
resources:
http://pigtail.net/LRP/printsrv/cygwin-sshd.html
http://maven.apache.org/plugins/maven-javadoc-plugin/
http://maven.apache.org/plugins/maven-site-plugin/
http://www.javaworld.com/javaworld/jw-02-2006/jw-0227-maven.html