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

Herve Boutemy edited comment on MNG-7353 at 5/18/22 6:48 AM:
-------------------------------------------------------------

[https://github.com/apache/maven/blob/3599d3414f046de2324203b78ddcf9b5e4388aa0/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleTaskSegmentCalculator.java#L97]
{noformat}
// "pluginPrefix:goal" or "groupId:artifactId[:version]:goal"{noformat}
we'll need to differentiate existing
{noformat}
groupId:artifactId:goal{noformat}
from new
{noformat}
pluginPrefix:version:goal{noformat}
I don't know what's best: trying to differentiate a groupId from a pluginPrefix 
or an artifactId from a version


was (Author: hboutemy):
https://github.com/apache/maven/blob/3599d3414f046de2324203b78ddcf9b5e4388aa0/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleTaskSegmentCalculator.java#L97
{noformat}// "pluginPrefix:goal" or 
"groupId:artifactId[:version]:goal"{noformat}

we'll need to differentiate existing
{noformat}groupId:artifactId:goal{noformat}
from new
{noformat}pluginPrefix:version:goal{noformat}

I don't know what's best: trying to differentiate a groupId from a pliginPrefix 
or an artifactId from a version


> add support for "mvn plugin:version:goal"
> -----------------------------------------
>
>                 Key: MNG-7353
>                 URL: https://issues.apache.org/jira/browse/MNG-7353
>             Project: Maven
>          Issue Type: New Feature
>          Components: Command Line
>    Affects Versions: 3.8.4
>            Reporter: Herve Boutemy
>            Priority: Major
>             Fix For: 4.0.x-candidate
>
>
> currently, we can run a simplified 2 parts form {noformat}mvn 
> wrapper:wrapper{noformat}
> but if we want to specify a version, we need to switch to full 4 prts form:
> {noformat}mvn 
> org.apache.maven.plugins:maven-wrapper-plugin:3.1.0-SNAPSHOT:wrapper{noformat}
> it would be nice to be able to write 3 parts simplified {noformat}mvn 
> wrapper:3.1.0-SNAPSHOT:wrapper{noformat}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to