Tibor17 commented on a change in pull request #281: [MNG-6357] Dependency order
should be nearest first
URL: https://github.com/apache/maven/pull/281#discussion_r319732923
##########
File path: maven-core/src/main/java/org/apache/maven/RepositoryUtils.java
##########
@@ -124,10 +146,18 @@ public static void toArtifacts(
Collection<org.apache.maven.artifact.Artifact> a
if ( filter == null || filter.accept( node,
Collections.<DependencyNode>emptyList() ) )
{
artifact.setDependencyTrail( nodeTrail );
- artifacts.add( artifact );
+
+ // add artifact in the list of the current depth
+ List<org.apache.maven.artifact.Artifact> artifactsCurrentDepth
= artifactsByDepth.get( currentDepth );
+ if ( artifactsCurrentDepth == null )
+ {
+ artifactsCurrentDepth = new
ArrayList<org.apache.maven.artifact.Artifact>();
Review comment:
same here
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services