maven-shade-plugin icon indicating copy to clipboard operation
maven-shade-plugin copied to clipboard

[MSHADE-387] relativePath added in the reduced POM when POM and parent POM do not have relativePath

Open jira-importer opened this issue 4 years ago • 1 comments

Shahim Essaid opened MSHADE-387 and commented

I'm a new user of the plugin. I have a project that has a -SNAPSHOT parent resolved from a remote repository. The generated reduced POM has the following for the parent:

<relativePath>../pom.xml/pom.xml</relativePath>

and I'm not able to understand why this is occurring so I'm assuming it is a bug. It causes build warnings for projects using the deployed shaded artifact.  Neither the parent or the project's POMs have a relative path entry. I tried a build on a different machine and the same results.


Affects: 3.2.4

jira-importer avatar May 04 '21 23:05 jira-importer

Shahim Essaid commented

I rearranged the shading project to be a child of a new aggregating project. I also made my shading project inherit from this new aggregating project which in turn inherits from the original parent POM. This solved the issue of having the incorrect relativePath element but I think there is some bug with the relativePath calculation.

jira-importer avatar May 05 '21 01:05 jira-importer