mojohaus / flatten-maven-plugin

Flatten Maven Plugin
https://www.mojohaus.org/flatten-maven-plugin/
Apache License 2.0
205 stars 85 forks source link

Upgrade from Maven 3.8.4 to 3.9.1 breaks flattening in plugin version > 1.3 #352

Open william00179 opened 1 year ago

william00179 commented 1 year ago

Hi there,

I have upgraded from Maven 3.8.4 to 3.9.1 and noticed that dependencies in the parent POM were no longer being pulled into the leaf POM. Dropping the version of the plugin back to 1.3.0 resolved the issue.

What information do you need from me to investigate this issue?

slawekjaranowski commented 1 year ago

As usual simple project which can be used to reproduce issue and finally can be added to IT.

You can look at examples in current ITs https://github.com/mojohaus/flatten-maven-plugin/tree/master/src/it/projects

slawekjaranowski commented 1 year ago

There is test similar to what you describe: https://github.com/mojohaus/flatten-maven-plugin/tree/master/src/it/projects/inherit-parent-dependency

I'm right?

slachiewicz commented 1 year ago

maybe its related to https://issues.apache.org/jira/browse/MRESOLVER-357

slawekjaranowski commented 1 year ago

@slachiewicz @william00179 without example reproduce project we can only guess

hkampbjorn commented 6 months ago

This sounds similar to issue #337. Does versions 1.4.0 and later work for you with maven versions before 3.9?