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

default profile not deactivated when -P <profile> specified

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.6.2
    • None
    • Profiles
    • None

    Description

      Two profiles - one activeByDefault

      mvn -P bedework-3 help:active-profiles
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Build Order:
      [INFO]
      [INFO] bw-event-registration                                              [pom]
      [INFO] bw-event-registration-common                                       [jar]
      [INFO] bw-event-registration-service                                      [jar]
      [INFO] bw-event-registration-war                                          [war]
      [INFO] bw-event-registration-ear                                          [ear]
      [INFO]
      [INFO] --------------< org.bedework.evreg:bw-event-registration >--------------
      [INFO] Building bw-event-registration 4.0.9-SNAPSHOT                      [1/5]
      [INFO] --------------------------------[ pom ]---------------------------------
      [INFO]
      [INFO] --- maven-help-plugin:3.2.0:active-profiles (default-cli) @ bw-event-registration ---
      [INFO]
      Active Profiles for Project 'org.bedework.evreg:bw-event-registration:pom:4.0.9-SNAPSHOT':The following profiles are active: - bedework-3 (source: external)
       - bedework-dev (source: external)Active Profiles for Project 'org.bedework.evreg:bw-event-registration-common:jar:4.0.9-SNAPSHOT':The following profiles are active: - bedework-3 (source: external)
       - bedework-dev (source: external)Active Profiles for Project 'org.bedework.evreg:bw-event-registration-service:jar:4.0.9-SNAPSHOT':The following profiles are active: - bedework-3 (source: external)
       - bedework-dev (source: external)Active Profiles for Project 'org.bedework.evreg:bw-event-registration-war:war:4.0.9-SNAPSHOT':The following profiles are active: - bedework-3 (source: external)
       - bedework-dev (source: external)Active Profiles for Project 'org.bedework.evreg:bw-event-registration-ear:ear:4.0.9-SNAPSHOT':The following profiles are active: - bedework-3 (source: external)
       - bedework-dev (source: external)[INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary for bw-event-registration 4.0.9-SNAPSHOT:
      [INFO]
      [INFO] bw-event-registration .............................. SUCCESS [  0.463 s]
      [INFO] bw-event-registration-common ....................... SKIPPED
      [INFO] bw-event-registration-service ...................... SKIPPED
      [INFO] bw-event-registration-war .......................... SKIPPED
      [INFO] bw-event-registration-ear .......................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  1.290 s
      [INFO] Finished at: 2019-10-17T13:46:37-04:00
      [INFO] ------------------------------------------------------------------------

      Turn off activeByDefault in settings.xml and

      mvn -P bedework-3 help:active-profiles
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Build Order:
      [INFO]
      [INFO] bw-event-registration                                              [pom]
      [INFO] bw-event-registration-common                                       [jar]
      [INFO] bw-event-registration-service                                      [jar]
      [INFO] bw-event-registration-war                                          [war]
      [INFO] bw-event-registration-ear                                          [ear]
      [INFO]
      [INFO] --------------< org.bedework.evreg:bw-event-registration >--------------
      [INFO] Building bw-event-registration 4.0.9-SNAPSHOT                      [1/5]
      [INFO] --------------------------------[ pom ]---------------------------------
      [INFO]
      [INFO] --- maven-help-plugin:3.2.0:active-profiles (default-cli) @ bw-event-registration ---
      [INFO]
      Active Profiles for Project 'org.bedework.evreg:bw-event-registration:pom:4.0.9-SNAPSHOT':The following profiles are active: - bedework-3 (source: external)Active Profiles for Project 'org.bedework.evreg:bw-event-registration-common:jar:4.0.9-SNAPSHOT':The following profiles are active: - bedework-3 (source: external)Active Profiles for Project 'org.bedework.evreg:bw-event-registration-service:jar:4.0.9-SNAPSHOT':The following profiles are active: - bedework-3 (source: external)Active Profiles for Project 'org.bedework.evreg:bw-event-registration-war:war:4.0.9-SNAPSHOT':The following profiles are active: - bedework-3 (source: external)Active Profiles for Project 'org.bedework.evreg:bw-event-registration-ear:ear:4.0.9-SNAPSHOT':The following profiles are active: - bedework-3 (source: external)[INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary for bw-event-registration 4.0.9-SNAPSHOT:
      [INFO]
      [INFO] bw-event-registration .............................. SUCCESS [  0.438 s]
      [INFO] bw-event-registration-common ....................... SKIPPED
      [INFO] bw-event-registration-service ...................... SKIPPED
      [INFO] bw-event-registration-war .......................... SKIPPED
      [INFO] bw-event-registration-ear .......................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  1.164 s
      [INFO] Finished at: 2019-10-17T13:48:56-04:00
      [INFO] ------------------------------------------------------------------------

      I'm not convinced this always happens but it has been since I noticed it yesterday. I was running 3.3.1 and upgraded to see if it helped.

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            douglm Mike Douglass

            Dates

              Created:
              Updated:

              Slack

                Issue deployment