maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MNG-4764) @required plugin parameters using default-value with expressions are not validated
Date Sun, 15 Aug 2010 12:46:32 GMT
@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

        

Mime
View raw message