-2

My application has a dependency to jaxb-api.jar and jaxb-impl.jar. How can I remove those two dependencies from project class path only while running junit? (I need the same jars available in class path for application to run. Need to remove only during junit test case execution.) Edit: I am using Gradle

Chetan Joshi
  • 5,582
  • 4
  • 30
  • 43
User_1940878
  • 321
  • 1
  • 6
  • 25

1 Answers1

-1

If you are using maven, it should help to set the "scope" of the dependencies. You can find information about Scopes under this link: https://howtodoinjava.com/maven/maven-dependency-scopes/

Crux lp
  • 166
  • 1
  • 12
  • It is recommended to include necessary parts of the reference link in the answer – Ibo Oct 05 '17 at 03:10