Hi everyone.
Using maven-plugin-testing-harness 3.3.0, I'm writing a plugin which
contains a Mojo that needs to access project metadata from
org.apache.maven.project.MavenProject.
The Mojo contains this Parameter:
@Parameter( defaultValue = "${project}",
readonly = true,
required = true )
protected MavenProject project;
But unfortunately I cannot initialize the Mojo and receive the
'ComponentConfigurationException: Cannot find default setter in class
org.apache.maven.project.MavenProject' error.
I have also tried using the deprecated @Component annotation with no
arguments, but to no avail.
How can my Mojo be made aware of the project containing its plugin?
Thanks in advance,
Kyle Moore
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]