[ https://issues.apache.org/jira/browse/MRESOLVER-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17678675#comment-17678675 ]
ASF GitHub Bot commented on MRESOLVER-307: ------------------------------------------ laeubi commented on code in PR #230: URL: https://github.com/apache/maven-resolver/pull/230#discussion_r1081211988 ########## maven-resolver-api/src/main/java/org/eclipse/aether/repository/WorkspaceReader.java: ########## @@ -55,4 +60,11 @@ */ List<String> findVersions( Artifact artifact ); + /** + * List all available artifacts this workspace repository manages. + * + * @return a stream of artifacts in no particular order + */ + Stream<Artifact> listArtifacts(); Review Comment: This is an implementation detail a repository might choose what it claims to be "contained" and I would assume that each of the returned artifacts also return a File if I call `findArtifact` / `findVersion` / `findModel` so this seem consistent for me. So probably the ReactorRepository should be adjusted to use "find" as well? > Support listing of workspace artifacts > -------------------------------------- > > Key: MRESOLVER-307 > URL: https://issues.apache.org/jira/browse/MRESOLVER-307 > Project: Maven Resolver > Issue Type: Improvement > Reporter: Christoph Läubrich > Priority: Major > > Currently the WorkspaceReader has a way to list versions or resolve the file > for an artifact, but there is no way of really get a list of workspace > artifacts itself. > The javadoc states: > {quote}Manages a repository backed by the IDE workspace, a build session or a > similar ad-hoc collection of artifacts.{quote} > so the goal is to have a way getting hold of the "collection of artifacts" > this Workspacereader manages. -- This message was sent by Atlassian Jira (v8.20.10#820010)