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

bad properties interpolation with profiles

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

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 2.0.3
    • None
    • None
    • cygwin
    • Patch

    Description

      create two profiles in your settings.xml

      • id test with a property <test>dev</test>
      • id snapshots with a property <test>snapshots</test>

      <activeProfiles>
      <activeProfile>dev</activeProfile>
      <activeProfile>snapshots</activeProfile>
      </activeProfiles>

      With the attached pom run :
      mvn validate :
      [echo] dev
      mvn -P snapshots validate :
      [echo] dev

      Olivier

      Attachments

        Issue Links

        Activity

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

          People

            Unassigned Unassigned
            olamy Olivier Lamy
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment