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
always use version from root DepManagement and don't use properties from parent.
overwrite scope only if parent dependency doesn't use scope
After investigation I realized that this is incorrect.
For parents we need to inherit DependencyManagement and Properties as non-rootDepManagements.
In this case we will be correctly overwrite empty scopes/version, use properties, etc.
Description
We need to correctly inherit some fields from the root DepManagement in parent dependencies:
version
from root DepManagement and don't use properties from parent.scope
only if parent dependency doesn't usescope
Example:
root pom:
Parent pom:
mvn
result:[INFO] com.example:child-depManagement-in-parent:jar:1.0.0 [INFO] +- org.example:example-api:jar:1.0.1:compile [INFO] \- org.example:example-api2:jar:1.0.2:runtime
Discussed in #7537
The text was updated successfully, but these errors were encountered: