You could also have one profile for snapshots and another profile for
release. Also, since you have to update the POM for the release version vs
snapshot, couldn't you also change the <site> url?
On 10/4/07, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> On 10/3/07, Chris Helck <[EMAIL PROTECTED]> wrote:
>
> > In maven2 how can I have snapshots websites deploy to one URL and
> > releases deploy to another?
>
> The site plugin uses both <distributionManagement><site> and a
> configuration element <stagingSiteURL>.
>
> I don't know of a way to get it to automatically do one thing for
> snapshots and another for releases, but if you can adjust your process
> to do either site:deploy or site:stage, then you can get that result.
>
> Maybe you will 'stage' the snapshot sites and 'deploy' the sites for
> releases. In the Maven Plugins parent pom [1] that Tim mentioned,
> we're trying out configuration that uses ${artifactId}-${version} in
> the staging url.
>
> [1] http://svn.apache.org/repos/asf/maven/plugins/trunk/pom.xml
>
> HTH,
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>