@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

        

Reply via email to