? add dependencies to surefire plugin

2011-03-10 Thread Dipl.-Ing. Torsten Liermann
Hi, I would like to add some dependencies to the surefire plugin like: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId inheritedtrue/inherited

Re: ? add dependencies to surefire plugin

2011-03-10 Thread Nick Stolwijk
Does it need to be on the classpath of surefire or of your unittests? If it is the first you are on the good way. You can check with -X what the classpath for surefire is. For the second, add a normal dependency with scope test. Hth, Nick Stolwijk ~Senior Java Developer~ iPROFS Wagenweg 208

Re: ? add dependencies to surefire plugin

2011-03-10 Thread Dipl.-Ing. Torsten Liermann
Thanks Nick. I need the artifact in the runtime classpath for the unit test. If I declare this dependency normal with test scope, then maven (3.0.2) adds this artifact to the test-compiler classpath. Glassfishs gf-client has over hundred dependencies and so the compilation time is 500 %

Re: ? add dependencies to surefire plugin

2011-03-10 Thread Laird Nelson
There is an additionalClasspathElements parameter to Surefire, but I'm not sure if it will solve your problem. http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#additionalClasspathElements Hope that helps, Laird On Thu, Mar 10, 2011 at 3:22 PM, Dipl.-Ing. Torsten Liermann

Re: ? add dependencies to surefire plugin

2011-03-10 Thread Nick Stolwijk
Do you need all those dependencies on the runtime test classpath? The only solution I see is to use the gf-client as test dependency and start excluding all that you don't need. There is no such thing as a scope runtime-test and I don't know if this ever came up. Maybe search through Jira for it.

Re: ? add dependencies to surefire plugin

2011-03-10 Thread Dipl.-Ing. Torsten Liermann
Yes, I need this dependencies on the runtime test classpath. Thanks for the rapid help. I will try it. On Thu, 10 Mar 2011 21:30:21 +0100 Nick Stolwijk nick.stolw...@gmail.com wrote: Do you need all those dependencies on the runtime test classpath? The only solution I see is to use the

RE: ? add dependencies to surefire plugin

2011-03-10 Thread Martin Gainty
...@liermann-it.de Subject: Re: ? add dependencies to surefire plugin To: users@maven.apache.org Date: Thu, 10 Mar 2011 21:36:32 +0100 Yes, I need this dependencies on the runtime test classpath. Thanks for the rapid help. I will try it. On Thu, 10 Mar 2011 21:30:21 +0100 Nick Stolwijk