You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
The text was updated successfully, but these errors were encountered: