Hi,
I'm trying to migrate my m1 plugins to m2, and have some questions before I
get started.
1. In m1 there was a directory structure and a specific goal to test
the plugin.
How should I test a plugin in m2.
2. If the answer to 1. is to junit test it using surefire.
How would I then populate my MOJO object since some instance variables is
and should be private.
For instance:
/**
* Location of the file.
* @parameter expression="${project.build.directory}"
* @required
*/
private File outputDirectory;
3. Is there a tutorial how to do a complete plugin development cycle,
with testing and all ?
( I used the mojo archetype in archetype plugin to create my plugin project
and then read this, which is a good start
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
matte