Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.8.2
-
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.