Uploaded image for project: 'Maven Help Plugin'
  1. Maven Help Plugin
  2. MPH-123

all-profiles does not show right active status

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2
    • 3.0.0
    • all-profiles
    • 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

      Attachments

        1. output.txt
          2 kB
          Mahendran Mookkiah
        2. hello-parent.zip
          4 kB
          Mahendran Mookkiah

        Activity

          People

            gboue Guillaume Boué
            mahendran.mookkiah Mahendran Mookkiah
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: