I'm experiencing a very strange problem.
Today I had to perform some minor changes to a library project. After performing the tasks I had to, I ran unit tests. But they fail due to:
According to the docs, this exception has been introduced in version 3.2.x of the Spring framework. And that's the weird thing: the project uses version 3.1.x!Code:java.lang.NoClassDefFoundError:org/springframework/beans/factory/NoUniqueBeanDefinitionException
I did not add nor remove any dependency.
Inquiring the deps, I noticed that spring-data-jpa:1.1.0.RELEASE (used in test scope) now holds references to spring-*:3.2.1.RELEASE.
I tried then to exclude all the 3.2.x artifact, but still I continue hitting the same exception.
I also wanted to say that the problem came out only after a complete clean of the project (both from Eclipse and from Maven), dependencies updating and complete re-build.