[
http://jira.codehaus.org/browse/MPLUGIN-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter moved MNG-2072 to MPLUGIN-36:
------------------------------------------
Affects Version/s: (was: 2.0.2)
Fix Version/s: (was: 2.1)
2.4
Component/s: (was: Plugin Creation Tools)
Complexity: (was: Intermediate)
Key: MPLUGIN-36 (was: MNG-2072)
Project: Maven 2.x Plugin Plugin (was: Maven 2)
> expression left out of plugin descriptor when you specify default-value
> before expression in @parameter mojo annotation
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: MPLUGIN-36
> URL: http://jira.codehaus.org/browse/MPLUGIN-36
> Project: Maven 2.x Plugin Plugin
> Issue Type: Bug
> Reporter: John Casey
> Fix For: 2.4
>
>
> Steps to reproduce:
> 1. open the maven-clean-mojo:CleanMojo
> 2. Reverse the order of the attributes to the @parameter expression in the
> verbose parameter
> 3. run 'mvn clean package'
> 4. copy target/classes/META-INF/maven/plugin.xml to basedir
> 5. Undo the change in the @parameter annotation
> 6. run 'mvn clean package'
> 7. run 'diff -u plugin.xml target/classes/META-INF/maven/plugin.xml
> You'll see something similar to:
> --- plugin.xml 2006-02-14 18:58:06.000000000 -0500
> +++ target/classes/META-INF/maven/plugin.xml 2006-02-14 18:58:20.000000000
> -0500
> @@ -69,6 +69,7 @@
> <testOutputDirectory implementation="java.io.File"
> default-value="${project.build.testOutputDirectory}"/>
> <followSymLinks
> implementation="boolean">${clean.followSymLinks}</followSymLinks>
> <outputDirectory implementation="java.io.File"
> default-value="${project.build.outputDirectory}"/>
> + <verbose implementation="boolean">${clean.verbose}</verbose>
> </configuration>
> </mojo>
> </mojos>
> The relevant line is in
> maven-plugin-tools-java:org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor,
> line 417:
> pd.setExpression( parameter.getNamedParameter(
> PARAMETER_EXPRESSION ) );
> it appears to be a qdox problem.
--
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