junit - Maven + jarsigner + test classes = error -


I have a Maven project in which some test cases are included today I tried to add the Jersey plugin and now these tests fail :

java.lang.SecurityException: signer information of class "types.AccountType" does not match the signer information of other classes in the same package

Exam class packages-Private methods Etc. are in the same package. I believe this error is happening because junit exam classes are not being signed on the classes being examined.

Is anyone suggesting to avoid this problem? I had some suggestions but I do not know how to implement them:

  1. The cause of the test phase is to use classes instead of a jar file.
  2. Test your jar file and sign it.


Comments