Maven
  1. Maven
  2. MNG-4530

Add alias feature for moved/renamed dependencies

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Dependencies
    • Labels:
      None

      Description

      There should be an option to link multiple dependency groupId/artifactIds so that the dependency resolver knows they refer to the same artifact. There are many dependencies that get renamed to a new groupId/artifactId. This causes problems because many times the old groupId/artifactId is still pulled in transitively from other projects. Currently, the only way to do this is with a tedious combination of <excludes> tags and enforcer rules. It would be much simpler if there were a mechanism in the pom and dependency manager to treat two IDs as the same dependency.

      <dependency>
        <groupId>org.mycomp</groupId>
        <artifactId>log4j</groupId>
        <version>1.0</version>
        <aliases>
          <alias>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
          <alias>
        </aliases>
      <dependency>
      

        Activity

        Paul Gier created issue -
        Brett Porter made changes -
        Field Original Value New Value
        Fix Version/s Issues to be reviewed for 3.x [ 13145 ]
        Jason van Zyl made changes -
        Resolution Incomplete [ 4 ]
        Status Open [ 1 ] Closed [ 6 ]
        Paul Benedict made changes -
        Fix Version/s Issues to be reviewed for 3.x [ 13145 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
        Mark Thomas made changes -
        Workflow jira [ 12714830 ] Default workflow, editable Closed status [ 12754452 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
        Mark Thomas made changes -
        Workflow jira [ 12952418 ] Default workflow, editable Closed status [ 12989755 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Paul Gier
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development