Hi I am trying to achieve something like this:
In a parent pom, I have
Compil
As of Maven 3.0, profiles in the POM can also be activated based on properties from active profiles from the settings.xml.
You can check the sample given here :
http://maven.apache.org/guides/introduction/introduction-to-profiles.html