maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: Maven deploy plugin: altDeploymentRepository: snapshots OK?
Date Wed, 21 Mar 2012 18:10:22 GMT
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 <ljnelson@gmail.com>:
> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message