Nov 17th, 2010, 07:28 PM
Maven test using spring AbstractTransactionalJUnit4SpringContextTests
I am trying to create a spring hibernate project based Maven typical project structure. The project work properly, but when i tried to use Maven test command to run unit test cases which are based on AbstractTransactionalJUnit4SpringContextTests, it failed. If i run the test case individually, test case work properly.
I did lots of googling on the internet, someone suggest this is probabaly caused by duplicate copies in Maven Dependencies. I guess it may be caused by conflict between spring-asm-3.0.2.jar and hibernate's asm-3.1.jar, my question is how to exclude one of the duplicate asm jar from the maven dependencies.
I tried to add following into my pom.xml
but dosn't work
can anyone help me out, thank you very much in advance.
Tags for this Thread