Mahendran Mookkiah created MPH-123: -------------------------------------- Summary: all-profiles does not show right active status Key: MPH-123 URL: https://issues.apache.org/jira/browse/MPH-123 Project: Maven Help Plugin Issue Type: Bug Components: all-profiles Affects Versions: 2.2 Reporter: Mahendran Mookkiah Priority: Minor Attachments: hello-parent.zip, output.txt
In multi-module project, help:all-profiles shows profiles of child project are not active. But it is active and the profile plugins get executed. whereas active-profiles shows the right status. Attached an example project which executed with below command and snippet of result. Command: mvn help:all-profiles help:active-profiles -Pbuild-site Output snippet: [INFO] Listing Profiles for Project: com.example:hello-parent:pom:0.0.1-SNAPSHOT Profile Id: build-site (Active: true , Source: pom) Profile Id: artifactory (Active: true , Source: settings.xml) Listing Profiles for Project: com.example:helloworld:jar:0.0.1-SNAPSHOT Profile Id: artifactory (Active: true , Source: settings.xml) Profile Id: build-site (Active: false , Source: pom) <<<=========================== shows not active [INFO] [INFO] --- maven-help-plugin:2.2:active-profiles (default-cli) @ hello-parent -- - [INFO] Active Profiles for Project 'com.example:hello-parent:pom:0.0.1-SNAPSHOT': The following profiles are active: - artifactory (source: external) - build-site (source: com.example:hello-parent:0.0.1-SNAPSHOT) Active Profiles for Project 'com.example:helloworld:jar:0.0.1-SNAPSHOT': The following profiles are active: - artifactory (source: external) - build-site (source: com.example:hello-parent:0.0.1-SNAPSHOT) <<<=========================== shows active -- This message was sent by Atlassian JIRA (v6.4.14#64029)