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

Robert Scholte commented on MPLUGIN-348:
----------------------------------------

One case I can think of: consider the artifactId is {{foo-maven-plugin}} and 
you set the prefix to {{bar}}, then there's absolutely no relationship between 
the two. Probably most Maven users think that that if they call {{baz:do}}, 
that Maven will look for a plugin with the artifactId {{maven-baz-plugin}} or 
{{baz-maven-plugin}}. But that's not how it works: when creating the plugin 
descriptor the prefix is set as well, either calculated based on the artifactId 
of explicit.
I agree that the message is confusing (it should be about the average  Maven 
User, not Maven itself) and that the equals probably doesn't make sense; 
instead the goalPrefix should be a substring from defaultGoalPrefix or vice 
versa.


> Why does maven-plugin-plugin always warn if goalPrefix is set?
> --------------------------------------------------------------
>
>                 Key: MPLUGIN-348
>                 URL: https://issues.apache.org/jira/browse/MPLUGIN-348
>             Project: Maven Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 3.6.0
>            Reporter: Gili
>            Priority: Major
>
> If the {{<goalPrefix> parameter is set, the plugin will always issue a 
> warning: 
> [https://github.com/apache/maven-plugin-tools/blob/26ba0323bfd66214222b1be4d71402b0948d51bf/maven-plugin-plugin/src/main/java/org/apache/maven/plugin/plugin/AbstractGeneratorMojo.java#L216]}}
> {{Obviously the provided value will differ from the default goal prefix; 
> otherwise, why bother using this parameter at all?}}
> Shouldn't issue be logged as {{DEBUG}} instead of {{WARN}}?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to