Open karonpante opened 6 years ago
OMG. You are right. I have testet it - even with 1.1.0
the bug is reproducable just as you described.
Seems that the profile activation is somehow buggy.
Shall be fixed for next release. Help is more than welcome.
We have a project in which different profiles define another version of a certain dependency. So the GroupID and ArtifactID of these dependencies are the same.
When we build this project with a certain profile using the flatten plugin with the 'embedBuildProfileDependencies' option enabled we don't get the expected result. Next to the selected profile dependencies also the dependencies of other profiles which have the same GroupID and ArtifactID (but another version) are added to the flattened pom file.
Following pom file was used to test this:
When building this with the following command:
This gives the following flattened pom file: