Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Commit

Permalink
took out parameterized URL example upon request from Peter Lynch
Browse files Browse the repository at this point in the history
  • Loading branch information
mosabua committed Jan 9, 2015
1 parent 72a1cd4 commit d446813
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions chapter-sites.asciidoc
Expand Up @@ -88,18 +88,12 @@ the Maven-generated project website:
</distributionManagement>
----

The URL in the distribution management is not parameterized, which
means that any redeployment overwrites old content and potentially
leaves old stale files behind. To have a new deployment directory for
each version, change the URL to a parameterized setup or a hardcoded
specific URL for your project.


[[ex-sites-dist-parameterized]]
.Parameterized Distribution Management for Site Deployment
----
<url>dav:http://localhost:8081/nexus/content/sites/site/${project.groupId}/${project.artifactId}/${project.version}</url>
----
The URL in the distribution management does not change with the
project versions automatically, which means that any redeployment
overwrites old content and potentially leaves old stale files
behind. To have a new deployment directory for each version, change
the URL to a parameterized setup or a hardcoded specific URL for your
project version.

If you combine this approach with a redirector or a static page that
links to the different copies of your site, you can e.g., maintain
Expand Down

0 comments on commit d446813

Please sign in to comment.