Announcement Announcement Module
Collapse
No announcement yet.
Maven test using spring AbstractTransactionalJUnit4SpringContextTests Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
Working...
X