Hi Amit,

I experienced the same problem. According to

http://maven.apache.org/surefire/maven-surefire-plugin/examples/configuring-classpath.html

there is a certain classpath ordering for unittests favoring project
dependencies. Therefore by explicitly specifying the lucene-test-framework
as such a dependency inside the pom.xml, it should appear before
lucene-core.jar:

<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-test-framework</artifactId>
<version>4.1.0</version>
<scope>test</scope>
</dependency>

In my case, this fixed the problem.
Best regards
Jan



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Anyone-else-see-this-error-when-running-unit-tests-tp4015034p4038039.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to