Closed gzm55 closed 6 years ago
workaround: try alternative logic https://random-maven.github.io/flatten-maven-plugin/flatten-mojo.html
<performEraseScopes>true</performEraseScopes>
<performDependencyResolve>false</performDependencyResolve>
Hi, your workaround works as expected, thanks.
when invoking maven-dependency-plugin:resolve, can we copy the model.getDependecies()
?
fixed, here is integration test https://github.com/random-maven/flatten-maven-plugin/tree/master/src/it/issue-4
please verify issue is resolved in v 1.4.x https://bintray.com/random-maven/maven/flatten-maven-plugin
Hi, i tested the issue with 1.4.x, it is resolved, thanks again.
<exclusions>
tag is missingHi, when i flatten the pom.xml in my project, the original
<exclusions>
tag is missing in the output xml.input pom.xml
run
mvn dependency:tree
, the output isThen, generate the flatten pom using:
The flatten pom is
The expected
<exclusions>
is missing. then re-run dependency tree:mvn -f target/flatten/pom.xml.flatten dependency:tree
junit:junit
appears in the dependency tree: