The jar file in question is a 3:de part jar that we can't and should not change. The application depends on the jar for a certain specific operation, but not for the building and testing of the module itself.

Don't ask me why, not my idea :)

We use the jar only to Acceptance test the application.
The problem is that the jar (dependency) is loaded in a separate classloader when you are running the application and are using the specific operation.

I use runtime scope for now and see if I can solve it some other way later.

Thanks for all help. Keep up the good work on Maven.

Henrik

Cummings,Steven skrev:
Can the tests be in a separate jar? If so they could include the original jar 
with the code to test but exclude dependencies as needed.

Steven

-----Original Message-----
From: Henrik [mailto:[email protected]] Sent: Thursday, May 07, 2009 6:04 AM
To: [email protected]
Subject: Exclude dependency from scope runtime test classpath

Hi,

I was wondering if there is a way to remove a dependency from the test classpath when using <scope>runtime</scope> I want to make sure that the jar file is only used when running the application and not when testing it.

So it really comes down to, I want to have the dependency (jar file) but i don't want to add it to compile or test classpath.

Thanks,

Henrik

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

---------------------------------------------------------------------
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