Never mind. this works. On Wed, Dec 9, 2009 at 12:59 PM, Erlend Hamnaberg <[email protected]> wrote:
> Is settings.xml read before the POMS? > > So if I for instance define a property in the POM and i want to trigger a > profile in the settings.xml. > Can I do that from the POM? > > Say for instance i have this: > > pom.snippet > > <properties> > <branch>trunk</branch> > </properties> > > then I have the settings.xml snippet. > > <profile> > <id>product-trunk</id> > <activation> > <activeByDefault>false</activeByDefault> > <property> > <name>branch</name> > <value>trunk</value> > </property> > </activation> > <repositories> > <repository> > <id>central</id> > <url>http://localhost:9000/content/groups/trunk</url> > <releases> > <enabled>true</enabled> > </releases> > <snapshots> > <enabled>true</enabled> > </snapshots> > </repository> > </repositories> > </profile> > > mvn help:active-profiles does not say the product-trunk is active, and I am > assuming that this is because of the settings.xml is read before the poms. > > > Now, before you say that I should use mirrors instead. Yes i want to do > that, however, we have three different branches with the same version, and > it would be nice if I could "replace" central like this. > If this is not possible, I will go with the mirror approach. > > > -- Erlend >
