I faced with compile error:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /builds/my/project/src/test/java/com/some_package/MyTestClass.java:[43,40] error: cannot access ResourceSource
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
I have required import in my custom class MyTestClass.java:
import org.springframework.xml.transform.ResourceSource;
Added spring dependency to the module, but it didn’t help:
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-xml</artifactId>
<version>4.0.11</version>
</dependency>
More details:
[WARNING] COMPILATION WARNING :
COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] bad class file: C:Usersuser.m2repositoryorgspringframeworkwsspring-xml4.0.11spring-xml-4.0.11.jar(/org/springframework/xml/transform/ResourceSource.class)
bad class file: C:Usersuser.m2repositoryorgspringframeworkwsspring-xml4.0.11spring-xml-4.0.11.jar(/org/springframework/xml/transform/ResourceSource.class)