You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anders Hammar (JIRA)" <ji...@codehaus.org> on 2011/01/14 13:45:57 UTC

[jira] Commented: (MPLUGIN-179) Clarify the goalPrefix (is there a default value for example) param

    [ http://jira.codehaus.org/browse/MPLUGIN-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251600#action_251600 ] 

Anders Hammar commented on MPLUGIN-179:
---------------------------------------

I checked the code and my suggestion above is not completely correct. Not sure how to formulate what this code does though:

{quote}
    public static String getGoalPrefixFromArtifactId( String artifactId )
    \{
        if ( "maven-plugin-plugin".equals( artifactId ) )
        \{
            return "plugin";
        \}
        else
        \{
            return artifactId.replaceAll( "-?maven-?", "" ).replaceAll( "-?plugin-?", "" );
        \}
    \}
{quote}


> Clarify the goalPrefix (is there a default value for example) param
> -------------------------------------------------------------------
>
>                 Key: MPLUGIN-179
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-179
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Improvement
>    Affects Versions: 2.6
>         Environment: n/a
>            Reporter: Anders Hammar
>
> The doc for the goalPrefix param states:
> {quote}
> The goal prefix that will appear before the ":".
> {quote}
> I'm trying to understand if I need to define this parameter. It doesn't seem so based on my experience/tests as it will use some (most often good) default value. This should be clarified in the docs.
> Maybe something like this (is this correct?):
> {quote}
> If not defined, the default value depends on the artifactId name pattern of the plugin:
> * maven-abc-plugin - default value of 'xxx'
> * abc-maven-plugin - default value of 'xxx'
> * abc-cde-fgh - default value of 'abc-cde-fgh'
> {quote}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira