You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2006/06/21 20:59:59 UTC
[jira] Updated: (MNG-2072) expression left out of plugin descriptor
when you specify default-value before expression in @parameter mojo
annotation
[ http://jira.codehaus.org/browse/MNG-2072?page=all ]
John Casey updated MNG-2072:
----------------------------
Fix Version: 2.1
> expression left out of plugin descriptor when you specify default-value before expression in @parameter mojo annotation
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: MNG-2072
> URL: http://jira.codehaus.org/browse/MNG-2072
> Project: Maven 2
> Type: Bug
> Components: Plugin Creation Tools
> Versions: 2.0.2
> Reporter: John Casey
> Fix For: 2.1
>
>
> 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