[ 
https://jira.codehaus.org/browse/MNG-5001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason van Zyl updated MNG-5001:
-------------------------------

    Fix Version/s: Issues to be reviewed for 4.x
    
> @readonly Mojo parameter annotation doesn't work
> ------------------------------------------------
>
>                 Key: MNG-5001
>                 URL: https://jira.codehaus.org/browse/MNG-5001
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 3.0.2
>            Reporter: Jochen Ehret
>             Fix For: Issues to be reviewed for 4.x
>
>         Attachments: log-maven-2.2.1.txt, log-maven-3.0.2.txt, 
> readonlytest.zip
>
>
> In Maven 2.2.1, the @readonly annotation works as described: You can't 
> configure a Mojo parameter in the pom <configuration> section. If you do, the 
> build will fail:
> [INFO] Error configuring: test:test-plugin. Reason: ERROR: Cannot override 
> read-only parameter: testParameter in goal: test:dumpParameter
> In Maven 3.0.2, the @readonly seems to have no effect:
> [INFO] --- test-plugin:0.0.1-SNAPSHOT:dumpParameter (test-exec) @ 
> test-project ---
> testParameter: readonly parameter configured in pom
> You can reproduce the behaviour with the attached example project. Log 
> outputs for Maven 2.2.1 and 3.0.2 are also attached.

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

Reply via email to