Usually I use the github repo that has multiple Spring Data versions showing which works with which version. But it is 4 months old so I think missing more recent Spring Data versions.
Now when I am trying to run my test, I can't create my App context because of conflicts.
I either get
Caused by: org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schem...neo4j-2.0.xsd; lineNumber: 32; columnNumber: 51; src-resolve: Cannot resolve the name 'repository:repository' to a(n) 'type definition' component.
When I just let the Spring Data JPA bring with it the Spring Data Commons version, which might cause this problem.
Or if I have a separate dependency tag in my pom to Spring Data Commons using
<spring-data-jpa.version>1.2.0.RELEASE</spring-data-jpa.version>
<spring-data-neo4j.version>2.1.0.RC1</spring-data-neo4j.version>
<spring-data-commons.version>1.3.1.RELEASE</spring-data-commons.version>
In which for SDN and JPA deps I add <exclusions> tag so they don't get commons, but the separate dep tag does, I get TypeNotPresent errors.
Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProx y
When I have the following in my pom file.
ThanksCode:<!-- Spring Data JPA --> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-jpa</artifactId> <version>${spring-data-jpa.version}</version> <!--exclusions> <exclusion> <groupId>org.springframework.data</groupId> <artifactId>spring-data-commons-core</artifactId> </exclusion> </exclusions--> </dependency> <!-- Spring Data Neo4j --> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-neo4j</artifactId> <version>${spring-data-neo4j.version}</version> <exclusions> <exclusion> <groupId>org.springframework.data</groupId> <artifactId>spring-data-commons-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-commons-core</artifactId> <version>${spring-data-commons.version}</version> </dependency>
Mark


Reply With Quote

