Unfortunately, it appears that adding dependencies to the surefire
plugin does not affect the booter classpath in any way.

Any other ideas?
 

-----Original Message-----
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 04, 2007 3:10 PM
To: Maven Users List
Subject: Re: Manipulating the surefire booter classpath

Assuming the instrumentation jar dependencies are available in Maven, I
might try adding them as plugin dependencies (inside the surefire plugin
node). You might also want to play with the forking modes and
SystemClassLoader surefire configuration options.

I've never done exactly this myself, but I'd be curious about your
configuration assuming you get it working... And I'm sure other people
would find this useful, too.

Wayne

On 4/4/07, David Jackman <[EMAIL PROTECTED]> wrote:
> To run my tests, I have to put in place an instrumentation jar using 
> the -javaagent commandline argument.  I added this using the argLine 
> property of the surefire configuration.  However, the instrumentation 
> jar has its own dependencies that aren't present in the surefire 
> booter classpath.  Adding them to my list of project dependencies 
> isn't enough--they need to be in the classpath when the JVM is
started.
>
> How do I do this?
>
> Thanks,
> ..David..
>

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


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

Reply via email to