Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-786

clean:clean goal ignores profile settings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-1
    • 2.0-beta-3
    • Plugins and Lifecycle
    • 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>

      Attachments

        Activity

          People

            jdcasey John Dennis Casey
            dantran Dan Tran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h Time Not Required
                0.5h