1 2 3 4 5 6 7 8 |
<!--xml version="1.0" encoding="UTF-8"?--> < beans xmlns = "http://www.springframework.org/schema/beans" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:jpa = "http://www.springframework.org/schema/data/jpa" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.1.xsd"> < jpa:repositories base-package = "tv.arte.tvguide.core.dao.jpa.repositories" > </ jpa:repositories ></ beans > |
1 |
Cannot resolve the name to a(n) 'element declaration |
I spent some time looking for the cause, and then I realised that the version of SpringDataMongoDB and SpringDataJPA had dependencies on different versions of SpringDataCore. and it was causing trouble
So if you get the same error just check your maven dependency hierarchy or go check the POM files for the libraries.
You can check out the POM files in Spring's repo :
Spring Maven repository