Use the correct syntax for defaultValue attribute when warning about deprecated @Component usage.
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1667948 13f79535-47bb-0310-9956-ffa450edef68master
parent
cc006dbd8e
commit
6edd624afc
|
|
@ -601,7 +601,7 @@ public class JavaAnnotationsMojoDescriptorExtractor
|
|||
// not a component but a Maven object to be transformed into an expression/property: deprecated
|
||||
getLogger().warn( "Deprecated @Component annotation for '" + parameter.getName() + "' field in "
|
||||
+ mojoAnnotatedClass.getClassName()
|
||||
+ ": replace with @Parameter( default-value = \"" + expression
|
||||
+ ": replace with @Parameter( defaultValue = \"" + expression
|
||||
+ "\", readonly = true )" );
|
||||
parameter.setDefaultValue( expression );
|
||||
parameter.setType( componentAnnotationContent.getRoleClassName() );
|
||||
|
|
|
|||
Loading…
Reference in New Issue