Hello:
I am trying to update my company pom to include a m-release-p
configuration for all other internal projects to use and in the process I am
hoping to get site deployment to upload just the released version of
javadocs upon release. It would appear that using the default release goals
of "deploy site-deploy" is uploading the current SNAPSHOT version of the
site on prepare and the updated dev version on perform. What I would like
to have happen is for the site-deploy goal to be run from the checkout
directory resulting in one site deployment of the released site. Is there
any way to do this by configuring the m-release-p and a site
distributionManagement element only or would this require a release profile
and perhaps antrun? I also don't want to require my team to remember to cd
into the checkout directory and run site-deploy there in order to get
released site deployments working.
I'm hoping to end up with a structure on my webserver after performing
releases to project1 and project2 as follows:
project1
- 1.0
- 1.1
project2
- 1.0
- 1.1
I have defined the site distributionManagement as follows in each POM:
<distributionManagement>
<site>
<id>site</id>
<name>API Documentation</name>
<url>${site.deploy.url}/${project.artifactId}/${project.version}</url>
</site>
</distributionManagement>
Does anyone have any ideas on how I might get this to work out?
Thanks in advance,
-Ryan