You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/08/15 14:46:32 UTC

[jira] Created: (MNG-4764) @required plugin parameters using default-value with expressions are not validated

@required plugin parameters using default-value with expressions are not validated
----------------------------------------------------------------------------------

                 Key: MNG-4764
                 URL: http://jira.codehaus.org/browse/MNG-4764
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Plugins and Lifecycle
    Affects Versions: 2.2.1
            Reporter: Benjamin Bentmann
            Priority: Minor


For a mojo parameter like
{code:java}
/**
 * @parameter default-value="${project.url}"
 * @required
 */
String url
{code}
Maven will not validate whether the default value actually evaluates to a non-null value.

This is a subtle difference from
{code:java}
/**
 * @parameter expression="${project.url}"
 * @required
 */
String url
{code}
where the non-null validation will be performed.

-- 
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] Closed: (MNG-4764) @required plugin parameters using default-value with expressions are not validated

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

Benjamin Bentmann closed MNG-4764.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-beta-2
         Assignee: Benjamin Bentmann

Fixed in [r983050|http://svn.apache.org/viewvc?view=revision&revision=983050].

> @required plugin parameters using default-value with expressions are not validated
> ----------------------------------------------------------------------------------
>
>                 Key: MNG-4764
>                 URL: http://jira.codehaus.org/browse/MNG-4764
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>    Affects Versions: 2.2.1
>            Reporter: Benjamin Bentmann
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 3.0-beta-2
>
>
> For a mojo parameter like
> {code:java}
> /**
>  * @parameter default-value="${project.url}"
>  * @required
>  */
> String url
> {code}
> Maven will not validate whether the default value actually evaluates to a non-null value.
> This is a subtle difference from
> {code:java}
> /**
>  * @parameter expression="${project.url}"
>  * @required
>  */
> String url
> {code}
> where the non-null validation will be performed.

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