psiroky commented on PR #180:
URL: 
https://github.com/apache/maven-compiler-plugin/pull/180#issuecomment-1877222225

   Yeah, there could possibly be some sort of heuristics to try to detect these 
relocations. Not sure if this would be something that should be done directly 
in the plugin or rather left to the dependency resolver.
   
   I think the missing relocation warning has the same cause - the plugin (or 
more precisely the dependency resolution mechanism the plugin uses) simply does 
not know that the artifact was relocated, because without version, it cannot 
fetch the relocation config.
   
   I believe the relocation warning gets printed in case you depend on the old 
artifact, but the version must be known, explicitly or via depMgmt: e.g:
   ```
   <dependency>
     <groupId>org.hibernate</groupId>
     <artifactId>hibernate-jpamodelgen</artifactId>
     <verison>6.0.0</version>
   ```
   In that case, the POM is fetched, relocation config found and the warning 
can be printed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to