Testing a M2 plugin ??

2005-10-23 Thread mattias_xdin
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
 

 

 

 



Testing a M2 plugin ??

2005-10-23 Thread mattias.olofsson
Hi,

I’m trying to migrate my m1 plugins to m2,  and have some questions before I
get started.



In m1 there was a directory structure and a specific goal to test the
plugin.
How should I test a plugin in m2.



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;



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




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]