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

Relocation message is never shown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.8.2
    • 3.8.3, 4.0.0-alpha-2, 4.0.0
    • Core
    • None

    Description

      The relocation element as defined in https://maven.apache.org/ref/3.8.2/maven-model/maven.html#class_relocation shows that you can specify an additional message to show the user about the move, such as the reason. 

      However this message is never shown while the relocated artifact is being resolved as a dependency.

       

      The message displayed instead is: https://github.com/apache/maven/blob/c3cf29438e3d65d6ee5c5726f8611af99d9a649a/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java#L189-L196

      For example:

      [WARNING] The artifact io.quarkus:quarkus-vertx-web:jar:999-SNAPSHOT has been relocated to io.quarkus:quarkus-reactive-routes:jar:999-SNAPSHOT.
      

      when displaying the relocation message gives

      [WARNING] The artifact io.quarkus:quarkus-vertx-web:jar:999-SNAPSHOT has been relocated to io.quarkus:quarkus-reactive-routes:jar:999-SNAPSHOT: The artifact quarkus-vertx-web is now named quarkus-reactive-routes. Please update your dependency.
      

      Attachments

        Activity

          People

            michael-o Michael Osipov
            gastaldi George Gastaldi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: