See issue: http://jira.codehaus.org/browse/SUREFIRE-117. I had to make changes to prevent the executable jar from being created.

mikewilsonuk wrote:
Thanks for your help. I am seriously considering abandoning maven and going
back to ant. The benefits do not seem to outweigh the drawbacks.


David Jackman wrote:
I actually spent quite a bit of time trying to get this exact thing to
work.  The problem here is that you need the dependencies of jmockit to
be on the surefire classpath when it's started up, but surefire provides
no way to do this.  I even tried creating my own jar with the jmockit
classes and the dependency classes together so I could make that the
javaagent jar, but that was unsuccessful as well.

I finally found a way to get my tests to work without jmockit.  I was
never able to get a javaagent to work with surefire.
http://jira.codehaus.org/browse/SUREFIRE-298 is already present to
address this issue (and it contains information about a workaround you
can do in the meantime).

..David..




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

Reply via email to