HI:
I want to know what is going on if a maven project has a profile whose name
is the same as that its parent?
That' to say, I define a profile named "dev "in the Parent project,
----------------------
<project....
<groupId>org.desk</groupId>
<artifactId>app</artifactId>
<packaging>pom</packaging>
<name>Parent</name>
<modules>
<module>app-dao</module>
<module>app-web</module>
</modules>
<profiles>
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>app-xml</module>
</modules>
</profile>
</profiles>
</project>
--------------------------
then I define a profile whose name is "dev" too in the child moudle of the
parent:
-------------------------------
<project....>
<parent>
<groupId>org.desk</groupId>
<artifactId>app</artifactId>
</parent>
<groupId>org.desk</groupId>
<artifactId>app-web</artifactId>
<packaging>war</packaging>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>app-core</artifactId>
<version>${project.version}</version>
</dependency>
<profiles>
<profile>
<id>dev</id>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>app-dao</artifactId>
<version>${project.version}</version>
</dependency>
</profile>
</profiles>
</project>
---------------------------------------
Now,what is going on when I run "mvn install"?
I know the profile in the parent will be executed by default, what about the
profile in the child module(app-web)?