[
https://issues.apache.org/jira/browse/MSHARED-843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16973645#comment-16973645
]
Robert Scholte commented on MSHARED-843:
----------------------------------------
The collector-result is intended to return a tree. Based on that I don't think
that also returning a flattened list of artifacts belongs here.
Looking again at the requirements of MDEP-648, I would start with only listing
the repositories.
An option could be to add a verbose-flag to also see the files.
Maven-dependency-tree has the concept of visitors, and that seems a matching
pattern for this problem: go over all dependency-nodes and build up a
{{Map<Repository,List<Artifact>>}}
> Provide artifacts in CollectorResult when collectDependencies
> --------------------------------------------------------------
>
> Key: MSHARED-843
> URL: https://issues.apache.org/jira/browse/MSHARED-843
> Project: Maven Shared Components
> Issue Type: New Feature
> Components: maven-artifact-transfer
> Reporter: Pim Moerenhout
> Priority: Minor
>
> To resolve MDEP-648, to list all repositories and the POM's where these
> repositories are defined, the collectDependencies in DependencyCollector
> should also return the found artifact without resolving them.
> The CollectorResult could define the interface:
> List<Artifact> getArtifacts()
--
This message was sent by Atlassian Jira
(v8.3.4#803005)