Use something like
<distributionManagement>
<snapshotRepository>
<id>${distMgmtSnapshotsId}</id>
<name>${distMgmtSnapshotsName}</name>
<url>${distMgmtSnapshotsUrl}</url>
</snapshotRepository>
</distributionManagement>
<properties>
<distMgmtSnapshotsId>Snapshot Repository</distMgmtSnapshotsId>
<distMgmtSnapshotsName>Snapshot Repository</distMgmtSnapshotsName>
<distMgmtSnapshotsUrl>http://host:port/repository/snapshots/</distMgmtSnapshotsUrl>
</properties>
You have correct default values and you can override with -D ...
2012/3/21 Laird Nelson <[email protected]>:
> If I am deploying a SNAPSHOT artifact, but I wish to supply the
> altDeploymentRepository property on the command line, is Maven or the
> plugin smart enough to realize that I'm deploying a SNAPSHOT?
>
> I ask because the "regular" distributionManagement element has *two*
> entries: one for releases, and one for snapshots.
>
> I would have expected a corresponding duality in the properties I could
> pass (e.g. altDeploymentSnapshotRepository or something).
>
> Best,
> Laird
>
> --
> http://about.me/lairdnelson
--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]