I'm struggling to understand the complexities of deploying a multi-module maven site that has working links. This is complicated by the fact that I'm deploying to Google Code using the maven-scm-provider-hg
.
According to the docs, I'm supposed to run mvn site:site site:stage
to get a full working site. However when I run mvn site:deploy
it deploys the parent pom site which is empty except for the images and css folders.
Next I try mvn site:stage-deploy
. This fails because it adds staging/
to the url, which since I'm using Google code causes an error because http://code.google.com/p/myproject.site/staging
isn't a repository. This also isn't a long term solution since I'm pretty sure the maven release plugin runs site:site
.
What is the official way to deploy a full multi-module site with working links?