Am 02.07.2010 um 09:37 schrieb Søren Krogh Neigaard: > Hi > > I would like to activate (or not) a profile in my settings.xml base don which > profile is active in my pom.xml. The active profile is determined by either > activated by default, or by setting a -P argument to maven. How can I do this? > > In my pom.xml I also set a <env>production</env> in my production profile and > so on, can I use this to activate profiles in settings.xml, or how do I do > this?
Hello, we sometimes use a trigger file or directory to achieve this, e.g. a profile is activated if the directory "profiles" or an empty file WITH_SSL exist in the project. By this means we need to set an environment variable. Regards Mirko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org