-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scope/optional of profile dependency is ignored if version managed in dependency management #291
Labels
Comments
andpab
changed the title
flatten plugin changes provided scope in profile dependency to compile scope if version managed in dependency management
Provided scope in profile dependency is changed to compile scope if version managed in dependency management
Aug 4, 2022
andpab
added a commit
to andpab/flatten-maven-plugin
that referenced
this issue
Aug 6, 2022
If the scope for a dependency with an entry in dependency management is defined in a profile dependency but not in the dependency management section, then use the scope defined in the profile dependency rather than falling back to the default scope "compile"
andpab
added a commit
to andpab/flatten-maven-plugin
that referenced
this issue
Aug 6, 2022
If the optional for a dependency with an entry in dependency management is defined in a profile dependency but not in the dependency management section, then use the optional defined in the profile dependency rather than falling back to the default value "false"
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. |
andpab
changed the title
Provided scope in profile dependency is changed to compile scope if version managed in dependency management
Scope/optional of profile dependency is ignored if version managed in dependency management
Aug 6, 2022
andpab
added a commit
to andpab/flatten-maven-plugin
that referenced
this issue
Aug 8, 2022
If the scope/optional for a dependency with an entry in dependency management is explicitly defined in a profile dependency but not in the dependency management section, then use the scope/optional defined in the profile dependency rather than falling back to the default value
andpab
added a commit
to andpab/flatten-maven-plugin
that referenced
this issue
Aug 8, 2022
If the scope/optional for a dependency with an entry in dependency management is explicitly defined in a profile dependency but not in the dependency management section, then use the scope/optional defined in the profile dependency rather than falling back to the default value
slawekjaranowski
pushed a commit
that referenced
this issue
Aug 8, 2022
If the scope/optional for a dependency with an entry in dependency management is explicitly defined in a profile dependency but not in the dependency management section, then use the scope/optional defined in the profile dependency rather than falling back to the default value
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: