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 < [email protected]> wrote: > 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 % longer. :( > > On Thu, 10 Mar 2011 21:12:04 +0100 > Nick Stolwijk <[email protected]> wrote: > >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 > >2012 NM Haarlem > >T +31 23 547 6369 > >F +31 23 547 6370 > >I www.iprofs.nl > > > > > > > >On Thu, Mar 10, 2011 at 9:04 PM, Dipl.-Ing. Torsten Liermann > ><[email protected]> wrote: > >> f-client > > > >--------------------------------------------------------------------- > >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] > >
