readOnly parameters in a plugin are not readOnly
------------------------------------------------

                 Key: MNG-3927
                 URL: http://jira.codehaus.org/browse/MNG-3927
             Project: Maven 2
          Issue Type: Bug
          Components: Plugins and Lifecycle
    Affects Versions: 2.0.9
            Reporter: Max Powers
         Attachments: pom.xml

Seems that maven is allowing pom writers to define new values for parameters 
that a plugin has marked as readOnly.  I have attached a pom that overrides the 
resources parameter in the maven-resources-plugin.  This is allowed in 2.0.9, 
but fails (as it should) in 3.x  (see line 89)

I would've expected to see this error (as i do in 3.x)

[ERROR]
ERROR: Cannot override read-only parameter: resources in goal: 
resources:resources


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