Maven
  1. Maven
  2. MNG-4056

Relax resolution of active project artifacts from the reactor with regard to artifact type

    Details

    • Type: Wish Wish
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.10, 2.1.0-M1
    • Fix Version/s: 2.1.0, 3.0-alpha-3
    • Component/s: Dependencies
    • Labels:
      None

      Description

      Right now, active project artifacts from the reactor are resolved by their exact artifact id. The distinction between artifact type and classifier gives rise to confusion for users here. For instance, the test JAR attached by jar:test-jar has the id gid:aid:test-jar:version. Hence, resolution from the reactor cache works only if users specify the dependency on the test JAR with <type>test-jar</type>, omitting <type> and just giving <classifier>tests</classifier> will not resolve the dependendy from the reactor. However, the latter approach with the classifier works once the test JAR is installed to the local repo. EJB client JARs are another example of this issue.

      Maybe we can extend the reactor resolution to do another id matching try which constructs the id of the active artifact by assuming type = artifactHandler.extension and classifier = artifactHandler.classifier before matching with the dependency id. This should more closely resemble artifact identity as visible in the repository, where we have no artifact type but only classifier and extension.

      1. MNG-4056.patch
        6 kB
        Benjamin Bentmann

        Issue Links

          Activity

          Benjamin Bentmann created issue -
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Link This issue is related to MNG-2045 [ MNG-2045 ]
          Benjamin Bentmann made changes -
          Attachment MNG-4056.patch [ 40352 ]
          Benjamin Bentmann made changes -
          Fix Version/s 2.1.0 [ 14587 ]
          Fix Version/s 3.0-alpha-3 [ 14719 ]
          Resolution Fixed [ 1 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Status Open [ 1 ] Closed [ 6 ]
          Brett Porter made changes -
          Link This issue supercedes MNG-4018 [ MNG-4018 ]
          Obi Ezechukwu made changes -
          Link This issue is related to MNG-4248 [ MNG-4248 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Workflow jira [ 12714418 ] Default workflow, editable Closed status [ 12754156 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12952352 ] Default workflow, editable Closed status [ 12989693 ]

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Benjamin Bentmann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development