You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (JIRA)" <ji...@codehaus.org> on 2007/08/02 15:33:13 UTC

[jira] Created: (MNG-3131) Error message is misleading if a missing plugin parameter is of a type like List

Error message is misleading if a missing plugin parameter is of a type like List
--------------------------------------------------------------------------------

                 Key: MNG-3131
                 URL: http://jira.codehaus.org/browse/MNG-3131
             Project: Maven 2
          Issue Type: Bug
            Reporter: Dennis Lundberg


Here is a sample output I got when I was working on the changes-plugin:

{code}
[INFO] One or more required plugin parameters are invalid/missing for 'changes:announcement-mail'

[0] inside the definition for plugin: 'maven-changes-plugin'specify the following:

<configuration>
  ...
  <smtpHost>VALUE</smtpHost>
</configuration>.

[1] inside the definition for plugin: 'maven-changes-plugin'specify the following:

<configuration>
  ...
  <toAddresses>VALUE</toAddresses>
</configuration>.
{code}

Notice the second parameter toAdresses. It is of the type List, so the correct configuration would be something like this

{code}
<configuration>
  ...
  <toAddresses>
    <toAddress>VALUE</toAddress>
  </toAddresses>
</configuration>.
{code}

I haven't found where in the code base the handling of List/Map/Array parameters is. That code could probably be borrowed/reused in maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java which is the class responsible for formating the above messages.

-- 
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

        

[jira] Updated: (MNG-3131) Error message is misleading if a missing plugin parameter is of a type like List

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3131:
------------------------------

    Fix Version/s: 2.0.x

> Error message is misleading if a missing plugin parameter is of a type like List
> --------------------------------------------------------------------------------
>
>                 Key: MNG-3131
>                 URL: http://jira.codehaus.org/browse/MNG-3131
>             Project: Maven 2
>          Issue Type: Bug
>            Reporter: Dennis Lundberg
>             Fix For: 2.0.x
>
>
> Here is a sample output I got when I was working on the changes-plugin:
> {code}
> [INFO] One or more required plugin parameters are invalid/missing for 'changes:announcement-mail'
> [0] inside the definition for plugin: 'maven-changes-plugin'specify the following:
> <configuration>
>   ...
>   <smtpHost>VALUE</smtpHost>
> </configuration>.
> [1] inside the definition for plugin: 'maven-changes-plugin'specify the following:
> <configuration>
>   ...
>   <toAddresses>VALUE</toAddresses>
> </configuration>.
> {code}
> Notice the second parameter toAdresses. It is of the type List, so the correct configuration would be something like this
> {code}
> <configuration>
>   ...
>   <toAddresses>
>     <toAddress>VALUE</toAddress>
>   </toAddresses>
> </configuration>.
> {code}
> I haven't found where in the code base the handling of List/Map/Array parameters is. That code could probably be borrowed/reused in maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java which is the class responsible for formating the above messages.

-- 
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

        

[jira] (MNG-3131) Error message is misleading if a missing plugin parameter is of a type like List

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MNG-3131.
-------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Issues to be reviewed for 3.x)
                   3.0.5
         Assignee: Robert Scholte

Fixed in http://git-wip-us.apache.org/repos/asf/maven/commit/56cd921f
                
> Error message is misleading if a missing plugin parameter is of a type like List
> --------------------------------------------------------------------------------
>
>                 Key: MNG-3131
>                 URL: https://jira.codehaus.org/browse/MNG-3131
>             Project: Maven 2 & 3
>          Issue Type: Bug
>            Reporter: Dennis Lundberg
>            Assignee: Robert Scholte
>             Fix For: 3.0.5
>
>
> Here is a sample output I got when I was working on the changes-plugin:
> {code}
> [INFO] One or more required plugin parameters are invalid/missing for 'changes:announcement-mail'
> [0] inside the definition for plugin: 'maven-changes-plugin'specify the following:
> <configuration>
>   ...
>   <smtpHost>VALUE</smtpHost>
> </configuration>.
> [1] inside the definition for plugin: 'maven-changes-plugin'specify the following:
> <configuration>
>   ...
>   <toAddresses>VALUE</toAddresses>
> </configuration>.
> {code}
> Notice the second parameter toAdresses. It is of the type List, so the correct configuration would be something like this
> {code}
> <configuration>
>   ...
>   <toAddresses>
>     <toAddress>VALUE</toAddress>
>   </toAddresses>
> </configuration>.
> {code}
> I haven't found where in the code base the handling of List/Map/Array parameters is. That code could probably be borrowed/reused in maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java which is the class responsible for formating the above messages.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MNG-3131) Error message is misleading if a missing plugin parameter is of a type like List

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MNG-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy updated MNG-3131:
------------------------------

    Fix Version/s:     (was: 3.0.5)
                   3.1.0
    
> Error message is misleading if a missing plugin parameter is of a type like List
> --------------------------------------------------------------------------------
>
>                 Key: MNG-3131
>                 URL: https://jira.codehaus.org/browse/MNG-3131
>             Project: Maven 2 & 3
>          Issue Type: Bug
>            Reporter: Dennis Lundberg
>            Assignee: Robert Scholte
>             Fix For: 3.1.0
>
>
> Here is a sample output I got when I was working on the changes-plugin:
> {code}
> [INFO] One or more required plugin parameters are invalid/missing for 'changes:announcement-mail'
> [0] inside the definition for plugin: 'maven-changes-plugin'specify the following:
> <configuration>
>   ...
>   <smtpHost>VALUE</smtpHost>
> </configuration>.
> [1] inside the definition for plugin: 'maven-changes-plugin'specify the following:
> <configuration>
>   ...
>   <toAddresses>VALUE</toAddresses>
> </configuration>.
> {code}
> Notice the second parameter toAdresses. It is of the type List, so the correct configuration would be something like this
> {code}
> <configuration>
>   ...
>   <toAddresses>
>     <toAddress>VALUE</toAddress>
>   </toAddresses>
> </configuration>.
> {code}
> I haven't found where in the code base the handling of List/Map/Array parameters is. That code could probably be borrowed/reused in maven-core/src/main/java/org/apache/maven/plugin/PluginParameterException.java which is the class responsible for formating the above messages.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira