You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Ben Tatham <ta...@ieee.org> on 2008/11/22 04:42:00 UTC
modify surefire in place via a plugin
Is it possible to modify the run of the surefire plugin from another
plugin? I would like to be able to set some systemProperties and
argLine from another plugin, but I don't want to have to run the tests
a second time. (I want to set the -javaagent, etc). Ideally, I would
like to be able to do this from a plugin so the dependcies (the
javaagent jar) can be available, and my plugin takes care of all the
setup, and post-processing for a report.
-Ben
PS In case you are interested, it is to wrap JCarder
(http://jcarder.org) into a maven plugin, and eventually into Hudson
and Sonar plugins.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: modify surefire in place via a plugin
Posted by Dan Tran <da...@gmail.com>.
Yes the latest surefire snapshot support that.
Basically, your plugin can be used to setup a bunch of properties,
which are then passed back to surefire in another phase.
See build-helper-maven-plugin to see some of this work.
-D
On Fri, Nov 21, 2008 at 7:42 PM, Ben Tatham <ta...@ieee.org> wrote:
> Is it possible to modify the run of the surefire plugin from another
> plugin? I would like to be able to set some systemProperties and
> argLine from another plugin, but I don't want to have to run the tests
> a second time. (I want to set the -javaagent, etc). Ideally, I would
> like to be able to do this from a plugin so the dependcies (the
> javaagent jar) can be available, and my plugin takes care of all the
> setup, and post-processing for a report.
>
> -Ben
>
> PS In case you are interested, it is to wrap JCarder
> (http://jcarder.org) into a maven plugin, and eventually into Hudson
> and Sonar plugins.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org