Closed andpab closed 2 years ago
I see it as a bug and I've submitted a PR that fixes it along with ITs for verification.
The same is the case for "optional", so I've included it in the PR. I'm going to adjust the issue description to more accurately describe the problem.
Given the following simplistic pom:
I would expect the flattened pom to look like this:
but what I get is this:
Note how the scope was changed to
compile
.Is that a bug or is it expected behaviour?
Side note: If the scope is defined in the dependency management entry rather than in the profile, it survives the flattening.