Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-beta-1
-
None
-
XP
Description
I am using pom.xml 's Profiles to dynamically inject addition modules into my a parent pom. It works
However m2 clean:clean ignores the profile setting and not step into the desired sub project to do the clean.
Here is the pom.xml. Appropriate module is injected based on -Dplatform=xyz
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>phoenix</groupId>
<artifactId>web-connectors-parent</artifactId>
<version>7.0-SNAPSHOT</version>
</parent>
<packaging>pom</packaging>
<groupId>phoenix</groupId>
<artifactId>modiiop-connectors-parent</artifactId>
<name>ModIIOP Connectors Parent</name>
<profiles>
<profile>
<id>add-windows-86-module</id>
<activation>
<property>
<name>platform</name>
<value>windows-x86</value>
</property>
</activation>
<modules>
<module>windows-x86</module>
</modules>
</profile>
<profile>
<id>add-redhat-x86-r3-module</id>
<activation>
<property>
<name>platform</name>
<value>redhat-x86-r3</value>
</property>
</activation>
<modules>
<module>redhat-x86-r3</module>
</modules>
</profile>
<profile>
<id>add-aix-ppc-module</id>
<activation>
<property>
<name>platform</name>
<value>aix-ppc</value>
</property>
</activation>
<modules>
<module>aix-ppc</module>
</modules>
</profile>
</profiles>
</project>