Jorg, Thanks for the reply.
Thanks for the tip on help:activeprofiles - it shows "dev" - so maybe I have a different problem. I created a simple set of projects using archetype:generate - a parent project and a child project for a multimodule project, parent builds child. I ran some tests with and without the -Pdev setting. It seems to only work if I specify the -Pdev setting, what am I missing here? Thanks, Todd In the parent pom I have <groupId>com.test</groupId> <artifactId>parent</artifactId> <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <name>parent</name> <url>http://maven.apache.org</url> <profiles> <profile> <id>dev</id> <modules> <module>child</module> </modules> </profile> </profiles> In the child I have <parent> <artifactId>parent</artifactId> <groupId>com.test</groupId> <version>1.0-SNAPSHOT</version> </parent> <groupId>com.loftware.test</groupId> <artifactId>child</artifactId> <version>1.0-SNAPSHOT</version> <name>childparent</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> When I run "mvn clean install" - I get the following C:\dev\maven3test\parent>mvn clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building parent 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ parent --- [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ parent --- [INFO] Installing C:\dev\maven3test\parent\pom.xml to C:\dev\maven\repo\com\test\parent\1.0-SNAPSHOT\parent-1.0-SNAPSHOT .pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ When, I run "mvn clean install -Pdev" i get C:\dev\maven3test\parent>mvn clean install -Pdev [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] parent [INFO] childparent [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building parent 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ parent --- [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ parent --- [INFO] Installing C:\dev\maven3test\parent\pom.xml to C:\dev\maven\repo\com\test\parent\1.0-SNAPSHOT\parent-1.0-SNAPSHOT .pom [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building childparent 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ childparent --- [INFO] Building jar: C:\dev\maven3test\parent\childparent\target\childparent-1.0-SNAPSHOT.jar [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ childparent --- [INFO] Installing C:\dev\maven3test\parent\childparent\target\childparent-1.0-SNAPSHOT.jar to C:\dev\maven\repo\com\loft ware\test\childparent\1.0-SNAPSHOT\childparent-1.0-SNAPSHOT.jar [INFO] Installing C:\dev\maven3test\parent\childparent\pom.xml to C:\dev\maven\repo\com\loftware\test\childparent\1.0-SN APSHOT\childparent-1.0-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] parent ............................................ SUCCESS [0.484s] [INFO] childparent ....................................... SUCCESS [1.965s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ Running "mvn help:activeprofiles" gives me C:\dev\maven3test\parent>mvn help:active-profiles [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building parent 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-help-plugin:2.1.1:active-profiles (default-cli) @ parent --- [INFO] Active Profiles for Project 'com.test:parent:pom:1.0-SNAPSHOT': The following profiles are active: - dev (source: settings.xml) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ running "mvn active-profile -Pdev" gives me C:\dev\maven3test\parent>mvn help:active-profiles -Pdev [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] parent [INFO] childparent [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building parent 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-help-plugin:2.1.1:active-profiles (default-cli) @ parent --- [INFO] Active Profiles for Project 'com.test:parent:pom:1.0-SNAPSHOT': The following profiles are active: - dev (source: pom) - dev (source: settings.xml) Active Profiles for Project 'com.loftware.test:childparent:jar:1.0-SNAPSHOT': The following profiles are active: - dev (source: settings.xml) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] parent ............................................ SUCCESS [0.405s] [INFO] childparent ....................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ -- View this message in context: http://maven.40175.n5.nabble.com/Profile-activeByDefault-in-Maven-3-0-tp5043324p5044499.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org