I have following error in my powermock test cases while running in Maven :
java.lang.LinkageError: loader constraint violation: loader (instance of org/powermock/core/classloader/MockClassLoader) previously initiated loading for a different type with name "javax/management/MBeanServer"
The solution is to add annotation
@PowerMockIgnore("javax.management.*")
The problem is I have many test files where I have to add this annotation.
Is there a way to add this at project level or in maven?
Thanks