Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2
-
None
Description
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