maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From orid <>
Subject Profiles
Date Tue, 01 Sep 2009 14:31:25 GMT


I came across a problem i can't seam to solve.
I have a set of properties that i need to use in all maven modules. All
modules inherit from the same parent pom.
So far no problem: I defined the properties in the parent pom properties
section and they are all inherited in the child poms.
Now, I had to make 2 build configurations, each with different values for
these properties. Sounds like profiles can come in handy right?
Well, apparently, profiles are not inherited. The properties themselves are
of course inherited so if I build the project from the parent pom i can
activate the right profile and all child projects will see the correct set
of properties, but when I build only a specific module, there is no way of
activating the profile of the parent pom.
I could of course define the profiles in settings.xml but that would make my
project unportable.
Another option would be to use the maven properties plugin to load the
properties from a file, but where would I put this file so it can be
accessed from every module?

Any suggestions?
View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message