You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Jackman <Da...@fastsearch.com> on 2007/01/09 23:56:42 UTC

[m2] Official and unofficial repositories

Our team is producing a number of artifacts, some of which are
considered "official" and others "unofficial".  We want to have a
separate repository for each.  What I'd like to do is define both
repositories in the parent pom, then each project will deploy to the
correct repository based on a property set in its pom.  However, I can't
make this work.  In fact, when I set up a profile in a pom to be active
based on a property, I can only make that profile active if I set the
property on the command line.  If the property is set in the
<properties> element of the pom, it doesn't activate the profile.
 
Am I doing something wrong here?  Should the pom property be enough to
activate the profile?  Is there a better way to have each project decide
which of the two repositories to deploy to without copying the
distributionManagement section to every pom?
 
..David..