Hi,
I am trying to migrate a plugin from XDoclet to Annotations. In my new
Mojo, I have a parameter declared like this:
/**
* Plexus resource manager used to obtain XSL.
*/
@Parameter(required=true, readonly=true)
private ResourceManager locator;
This used to work perfectly with
/**
* Plexus resource manager used to obtain XSL.
*
* @component
* @required
* @readonly
*/
private ResourceManager locator;
However, now I am getting the following error message in the invoker tests:
[ERROR] Failed to execute goal
org.codehaus.mojo:xml-maven-plugin:1.0.1-SNAPSHOT:validate
(default-cli) on project it1: The parameters 'locator' for goal
org.codehaus.mojo:xml-maven-plugin:1.0.1-SNAPSHOT:validate are missing
or invalid -> [Help 1]
Any ideas how to inject the ResourceManager? (I have tried to remove
the "required=true", but that gives an NPE (obviously).
Thanks,
Jochen
--
The next time you hear: "Don't reinvent the wheel!"
http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]