nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> From: l...@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 cla
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 wrote:
>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 a
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.
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 <
l.
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.
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
20
Hi,
I would like to add some dependencies to the surefire plugin like:
org.apache.maven.plugins
maven-surefire-plugin
true
org.glassfish.appclient