gnodet opened a new pull request, #13202:
URL: https://github.com/apache/maven/pull/13202

   Backport of #13196 to `maven-4.0.x`.
   
   ## Summary
   
   Fixes #13191 — improves the FATAL error message when an explicit 
`<relativePath>` resolves to a different G:A than the declared parent.
   
   When a POM declares an explicit `<relativePath>` that resolves to a 
different G:A than the declared parent, Maven 4 raises a FATAL error. This is 
correct behaviour — it is a configuration error. However, the error message was 
unhelpful.
   
   A common cause is **maven-shade-plugin** generating 
`dependency-reduced-pom.xml` with a `<relativePath>` that is invalid in the 
generated context (see apache/maven-shade-plugin#813). Users hit a FATAL with 
no guidance.
   
   ### Change
   
   Message-only change in `mismatchRelativePathAndGA`. The FATAL message now 
mentions:
   - that build tools generating POMs with incorrect `<relativePath>` (e.g. 
maven-shade-plugin) should be upgraded
   - `-Dmaven.maven3Personality` as an explicit temporary workaround
   
   ### The right fix
   
   apache/maven-shade-plugin#843: emit `<relativePath/>` in generated POMs.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to