cstamas commented on code in PR #595: URL: https://github.com/apache/maven-resolver/pull/595#discussion_r1819067121
########## maven-resolver-util/src/main/java/org/eclipse/aether/util/graph/manager/AbstractDependencyManager.java: ########## @@ -229,37 +231,46 @@ public DependencyManagement manageDependency(Dependency dependency) { } } + // system scope paths always applied to have them aligned + // (same artifact > same path) in whole graph if (systemDependencyScope != null - && (systemDependencyScope.is(scope) + && (scope != null && systemDependencyScope.is(scope.getValue()) || (scope == null && systemDependencyScope.is(dependency.getScope())))) { - String localPath = managedLocalPaths.get(key); + Holder<String> localPath = managedLocalPaths.get(key); if (localPath != null) { if (management == null) { management = new DependencyManagement(); } Map<String, String> properties = new HashMap<>(dependency.getArtifact().getProperties()); - systemDependencyScope.setSystemPath(properties, localPath); + systemDependencyScope.setSystemPath(properties, localPath.getValue()); management.setProperties(properties); } } - Boolean optional = managedOptionals.get(key); + // optional is not managed by model builder + // if rule exists, apply it Review Comment: MNG-4600: It introduced the empty method https://svn.apache.org/viewvc/maven/maven-3/trunk/maven-model-builder/src/main/java/org/apache/maven/model/management/DefaultDependencyManagementInjector.java?r1=925481&r2=925480&pathrev=925481 MNG-5227: there is comment "is solved in resolver but not in ModelBuilder". This clearly says "handled by dependency manager but not model builder" -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org