I want to exclude a dependency only for test scope.
Example:-
commons-lang3 dependency is used in two different places in my project. I want to exclude this dependency for test scope only.
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
How can I do so ?
you can configure the
classpath
at surefire plugin. like below:for more information Removing Dependency Classpath Elements