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

Properties defined in settings.xml not being passed to dependent project dependency classifiers

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.0
    • None
    • None

    Description

      Given the following projects and dependencies:
      Project A -> Project B -> Project C

      If Project B defines:
      <dependency>
      <groupId>ProjectC</groupId>
      <artifact>ProjectC</artifact>
      <version>1.0</version>
      <classifier>${target.classifier}</classifier>
      </dependency>

      And the settings.xml contains:
      <profile>
      ...
      <properties>
      <target.classifier>someclassifier</target.classifier>
      </properties>
      ...
      </profile>

      Where the profile in question is the active profile.

      Project B will build fine.
      Project A will fail, with:
      Failure to find ProjectC:ProjectC:${target.classifier}:1.0

      Attachments

        Issue Links

        Activity

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

          People

            bentmann Benjamin Bentmann
            truth Gynn Rickerby
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment