Skip to content

[MNG-8340] Staged 4.0.0-beta5 broken by maven-shade-plugin #9515

@jira-importer

Description

@jira-importer

Mateusz Gajewski opened MNG-8340 and commented

Reproduction: trinodb/trino#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.


Affects: 4.0.0-beta-5

Issue Links:

  • MNG-8294 Add a consistency check when loading parent
    ("is caused by")

Remote Links:

Backported to: 4.0.0-rc-1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:majorMajor loss of function

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions