Maven 2 & 3
  1. Maven 2 & 3
  2. MNG-4530

Add alias feature for moved/renamed dependencies

    Details

    • Complexity:
      Intermediate
    • Number of attachments :
      0

      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

        Hide
        Pete Muir added a comment -

        Project Jigsaw calls this "provides"

        "The clause provides P indicates that a dependency on module P by some other module may be satisfied by module M."

        Show
        Pete Muir added a comment - Project Jigsaw calls this "provides" "The clause provides P indicates that a dependency on module P by some other module may be satisfied by module M."
        Show
        Jason van Zyl added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
        Hide
        Jason van Zyl added a comment -

        Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

        Show
        Jason van Zyl added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: