m-m-m / code

Library to parse, analyze, transform and generate code
Apache License 2.0
2 stars 3 forks source link

MavenBridgeImpl fails to compute effective model #35

Closed hohwille closed 2 years ago

hohwille commented 3 years ago

In case of a module POM that inherits dependencyManagement from parent POM used in dependencies it seems that MavenBridgeImpl is unable to compute the effective POM/model. However on the same module mvn help:effective-pom is working fine. Therefore there appears to be a bug somewhere around here: https://github.com/m-m-m/code/blob/92ef01aba4f112f28964d088278e65cfad1446ab/java/maven/src/main/java/net/sf/mmm/code/java/maven/impl/MavenBridgeImpl.java#L182

hohwille commented 3 years ago

Maybe we can get some inspiration for a fix from here: https://github.com/mojohaus/flatten-maven-plugin/blob/11f92732cf1232187ca5d43777c5a55008f36819/src/main/java/org/codehaus/mojo/flatten/FlattenMojo.java#L832

hohwille commented 2 years ago

fixed in 1.0.0-beta7 that will be in central on Monday,