Can someone please help to get rid of this issue.
I have project which will create the signed jar through pom.xml configuration.Now I added the dependency for Junit & mockito by adding below dependencies
If I am running my junit test cases through eclipse then its working fine but when I am building my project(maven-build-install) it is giving me security exception stating "class signer information does not match signer information of other classes in the same package"
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
I know this type of error comes when you download the classes from two different jar but here I am not getting the point by just adding the Junit jar it is giving me the error.