[ 
https://issues.apache.org/jira/browse/MNG-7972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17798077#comment-17798077
 ] 

ASF GitHub Bot commented on MNG-7972:
-------------------------------------

cstamas commented on code in PR #1347:
URL: https://github.com/apache/maven/pull/1347#discussion_r1429763979


##########
api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactCoordinateFactory.java:
##########
@@ -43,6 +43,18 @@ public interface ArtifactCoordinateFactory extends Service {
     @Nonnull
     ArtifactCoordinate create(@Nonnull ArtifactCoordinateFactoryRequest 
request);
 
+    /**
+     * Creates a coordinate out of string that is formatted like:
+     * {@code <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>}
+     *
+     * @param session the session.
+     * @param coordinateString the string having "standard" coordinate.
+     * @return an {@code Artifact}, never {@code null}
+     * @throws IllegalArgumentException if {@code request} is null or {@code 
request.session} is null or invalid
+     */
+    @Nonnull
+    ArtifactCoordinate create(@Nonnull Session session, @Nonnull String 
coordinateString);

Review Comment:
   moved stuff into request





> Artifact creation from "standard string"
> ----------------------------------------
>
>                 Key: MNG-7972
>                 URL: https://issues.apache.org/jira/browse/MNG-7972
>             Project: Maven
>          Issue Type: Task
>          Components: Core
>            Reporter: Tamas Cservenak
>            Assignee: Tamas Cservenak
>            Priority: Major
>             Fix For: 4.0.0, 4.0.0-alpha-10
>
>
> Expose API to create artifact from "standard string":
> {noformat}
> <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>{noformat}
> As currently there is none for this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to