You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dmystery <De...@infosys.com> on 2006/11/06 05:39:08 UTC
Profile problem
I've a parent pom say pom.xml and two child poms say pomA.xml and pomB.xml.
I'm declaring a profile in both the child pom like,
<profile>
<id>dev</id>
<activation>
<property>
<name>env</name>
<value>dev</value>
</property>
</activation>
<build>
<filters>
<filter>src/main/env/dev.properties</filter>
</filters>
</build>
</profile>
This is used to create artifacts for different environment. So there is a
profile for each environment.
Now the problem is, i have to put the same set of environment files in
src/main/env/ of each childs and also have to write the profile declarations
in both the child poms.
Is there a way that profiles can be declared in the top most parent pom and
there is a single 'environment' directory at the parent pom level that holds
all the environment files? the childs can then just filter a particular file
from that directory instead of having them in their resources directory.
I've a lot of child projects and each needs to build based on a particular
environment file.
Can this be done? Does profile inheritance work? I've not found better
answers yet on the forum.
--
View this message in context: http://www.nabble.com/Profile-problem-tf2580392s177.html#a7193233
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org