[ https://issues.apache.org/jira/browse/MNG-7691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17712491#comment-17712491 ]
ASF GitHub Bot commented on MNG-7691: ------------------------------------- cstamas commented on PR #1086: URL: https://github.com/apache/maven/pull/1086#issuecomment-1509037734 I disagree here. Plugin prefix may be duplicated AFAIK, as it may be specified at plugin build time (not "derived" from artifact ID, like xxx-maven-plugin => xxx prefix). And nothing stops two plugins having G1:A1 and G2:A2 (where any combination of inequality may be, so basically we talk about two different artifacts)but still have same prefix. Prefix is used mostly for "manual" invocation of plugin, but to "address" the plugin, IMHO prefix is simply not precise. > Provide a generic way to skip Maven Goals for a specified plugin > ---------------------------------------------------------------- > > Key: MNG-7691 > URL: https://issues.apache.org/jira/browse/MNG-7691 > Project: Maven > Issue Type: Improvement > Components: Plugins and Lifecycle > Reporter: Jimisola Laursen > Priority: Major > > From ([Baeldung|https://www.baeldung.com/maven-disable-parent-pom-plugin]: > "Many plugins feature a skip parameter. We can use the skip parameter to > disable the plugin. Support for the skip parameter should be the first thing > we check because it is the simplest solution and the most conventional.". > I was thinking that there should be a generic way to skip maven plugin goals > in the core of Maven, i.e. it should not have to be implemented in each > plugin. > Would something like this work? > -Dmaven.skip.goals=groupID:artifactId:goal (is there a need to specify > version?) > E.g. > -Dmaven.skip.goals=io.spring.javaformat:spring-javaformat-maven-plugin:apply > -Dmaven.skip.goals=io.spring.javaformat:spring-javaformat-maven-plugin:apply+validate > -Dmaven.skip.goals=io.spring.javaformat:spring-javaformat-maven-plugin:apply+validate,org.apache.maven.plugins:maven-enforcer-plugin:enforce -- This message was sent by Atlassian Jira (v8.20.10#820010)