maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From santtarius <>
Subject Using filters based on environment.
Date Thu, 14 Nov 2013 15:50:34 GMT

 In our project we have dev,qa and prod environment and we have filter
(property) file for each of these environments.I do understand that based on
the maven profile (for each of the environment ) we can apply/inject the
respective filter values into any configuration file.

Our problem is that,we have two different data centres in production.We use
same build (profile) for deploying in these two data centres.But we need
different configuration values for these two data centres within the
production environment. How can i use filter to achieve the same,or is there
any other way.

I created separate maven build profiles for these two data centres and
placed the respective filter inside this profile (in pom.xml) .But maven
throws a error when we place filter inside profile.Can some one please guide
me to acheive the same.

Santhosh kumar N

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