I'm quite perplexed with one issue that I have with my Maven build. I have a pom.xml that has a dependency to a library as below:
When I build my project I ran into errors and so I decided to run the maven build using -X option. When I checked the classpath, I see the following:
I'm confused as to from where did the ones that are marked bold (casbah-commons_2.9.1, casbah-commons_2.9.1, mongo-java-driver/2.7.3, casbah-query_2.9.1) in the snippet above make it to the classpath? It is quite perplexing! If I look at the pom.xml that is referenced by the maven dependency that I added,
Allright, I managed to get this fixed. The reason why the unwanted jar files ended being up in the classpath was because of the fact that I had an additional maven dependency to another framework called Salat which is a Scala wrapper to work with MongoDB. This was actually causing the confusion. As soon as I removed it, I was able to get rid of the strange error that I was facing. Now it is another challenge that I have to solve and this one pretty much looks like a Scala issue. So posting it in the Scala forum.