Announcement Announcement Module
No announcement yet.
Maven test using spring AbstractTransactionalJUnit4SpringContextTests Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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

    but dosn't work

    can anyone help me out, thank you very much in advance.