Where did you see the alias notation? This isn't something I've seen before.
On 1/21/09 8:27 AM, "Reik Schatz" <[email protected]> wrote: > > Hi, > > I am working on a maven 2 plugin. My AbstractMojo has something like this: > > > /** > * @parameter alias="errorfile" > */ > private String m_errorFile; > > > I want to test the mojo using maven-plugin-testing-harness: > > > <dependency> > <groupId>org.apache.maven.plugin-testing</groupId> > <artifactId>maven-plugin-testing-harness</artifactId> > <version>1.2</version> > <scope>test</scope> > </dependency> > > > When I run my test, I get an error message saying > org.codehaus.plexus.component.configurator.ComponentConfigurationException: > Cannot find setter nor field in com.google.maven.TestabilityExplorerMojo for > 'errorfile' which is true as there is no field errorfile or setErrorfile. > However, Maven would be using the alias for setting the field. How can I get > my test to recognize that there is an alias 'errorfile'? --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
