Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.0-beta-5
-
None
-
None
Description
Reproduction: https://github.com/trinodb/trino/pull/23849
Project structure:
> pom.xml > client/trino-cli/pom.xml (parent.relativePath = ../../pom.xml)
maven-shade-plugin writes trino-cli dependency reduced pom to:
${project.build.directory}/pom.xml -> client/trino-cli/target/pom.xml
The file contains:
<parent> <relativePath>../../../pom.xml</relativePath> </parent>
which correctly points to root pom.xml
This worked under beta4, fails under beta5 with:
[ERROR] - [FATAL] 'parent.relativePath' points at '../../../pom.xml' but no POM could be found, please verify your project structure @ line 3, column 3
It seems that parent.relativePath is resolved against client/trino-cli instead of client/trino-cli/target where pom.xml is placed.
Attachments
Issue Links
- is caused by
-
MNG-8294 Add a consistency check when loading parent
- Closed
- links to