I’m using the site distribution feature of maven (version 3.0.3) to upload generated content for our projects. It’s configured in our pom.xml as such:
<distributionManagement>
<site>
<id>OUR_ID_HERE</id>
<name>PROJECT_NAME</name>
<url>scp://<host>/<parent folder>/${project.artifactId}</url>
</site>
</distributionManagement>
It works fine, however I’m noticing that the “Last Published: “ portion of the pages is only updated when I physically remove the contents of the target folder. I’m wondering if this is a bug, and if so, would it be possible to configure the maven-site-plugin (version 3.0-beta-3) to clean out the target folder prior to unzipping the uploaded files to work around it?
Any help is greatly appreciated.
This issue has already been reported: http://jira.codehaus.org/browse/MSITE-250