Take a step back and try and explain exactly what the problem is that you
think you are trying to solve.
I have a sneaky feeling you are trying to get functionality similar to
staging/promotion available from the good repository managers (iirc nexus
free does not, but nexus pro and artifactory
One possibility is to use properties in the distributionMgmt section
and then override the property values from command line. Have a look
at how this is done in the Apache parent pom (for snapshotRepository
distribution):
http://repo.maven.apache.org/maven2/org/apache/apache/10/apache-10.pom
: Re: There is a way to override distributionManagement in Maven
Take a step back and try and explain exactly what the problem is that you think
you are trying to solve.
I have a sneaky feeling you are trying to get functionality similar to
staging/promotion available from the good repository
during production
builds.
-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com]
Sent: Wednesday, March 28, 2012 2:45 AM
To: Maven Users List
Subject: Re: There is a way to override distributionManagement in Maven
Take a step back and try and explain
Connolly [mailto:stephen.alan.conno...@gmail.com]
Sent: Wednesday, March 28, 2012 8:42 AM
To: Maven Users List
Subject: Re: There is a way to override distributionManagement in Maven
and what is exactly wrong with
mvn -DaltDeploymentRepository=id::default::url deploy
?
no change to pom required
Hello Maven users,
I have a project master pom.xml with a distribution management section defined
like this:
distributionManagement
repository
idone/id
nameBlah Managed Releases Repository/name
urlhttp://:8080/archiva/repository/one//url
layoutdefault/layout