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'?

-- 
View this message in context: 
http://www.nabble.com/testing-harness-and-alias-tp21583127p21583127.html
Sent from the Maven Developers mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to