-
Nov 17th, 2010, 07:28 PM
#1
Maven test using spring AbstractTransactionalJUnit4SpringContextTests
Hello everyone,
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
<exclusions>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>asm-all</artifactId>
</exclusion>
</exclusions>
but dosn't work
can anyone help me out, thank you very much in advance.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules