Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-8340

Staged 4.0.0-beta5 broken by maven-shade-plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0.0-beta-5
    • None
    • 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

          Activity

            People

              Unassigned Unassigned
              wendigo Mateusz Gajewski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: