Hi Marcel!

For testing plugins please use the maven-invoker-plugin[1] and write 
integration tests


You can look at the sql-maven-plugin and a lot other maven plugins for samples.

LieGrue,
strub

[1] http://maven.apache.org/plugins/maven-invoker-plugin/


----- Original Message -----
> From: Marcel Overdijk <[email protected]>
> To: [email protected]
> Cc: 
> Sent: Thursday, September 1, 2011 2:51 PM
> Subject: [mojo-user] How to test sandbox plugins
> 
> 
> I wonder how I can best test a sandbox plugin I'm developing locally.
> 
> Should I just mvn install it to my local m2 repo and include it in my
> 'normal' maven project?
> 
> 
> PS: when I'm trying mvn install my plugin I get errors related to enforcer
> plugin:
> 
> [INFO] --- maven-enforcer-plugin:1.0:enforce (mojo-enforcer-rules) @ lesscss
> ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5.230s
> [INFO] Finished at: Thu Sep 01 14:47:18 CEST 2011
> [INFO] Final Memory: 10M/109M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce
> (mojo-enforcer-rules) on project lesscss: Execution mojo-enforcer-rules of
> goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce failed.
> NullPointerException -> [Help 1]
> 
> 
> Note that I did not configure anything for the enforcer plugin, but may this
> is because my parent is project is set to sandbox?
> 
> <parent>
>         <groupId>org.codehaus.mojo</groupId>
>         <artifactId>mojo-sandbox-parent</artifactId>
>         <version>9</version>
> </parent>
> -- 
> View this message in context: 
> http://old.nabble.com/How-to-test-sandbox-plugins-tp32379376p32379376.html
> Sent from the mojo - user mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to