简体   繁体   中英

Spring Concordion and Sonar won't work : jar conflict?

I work on a Gwt/Spring project with maven/jenkins/sonar. For my functionnal tests, I use concordion over gwt-test-utils .

Everything works great except while running the sonar analysis.

Here's the exception for each of these tests :

org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.sc.r.repository.MyRepository com.sc.r.BootstrapData.myRepository; 
   nested exception is java.lang.IllegalArgumentException: Can not set com.sc.r.repository.MyRepository field com.sc.r.BootstrapData.myRepository to $Proxy110

It seems like a jar conflict, but without more informations i don't know.

Due to the "exotic" nature of my configuration, i understand that no one could directly help me.

But how would you investigate if you were in my position ? What should i look for or where should i look ?

Thanks

What makes you think it's a dependency conflict? Can't see much from the exception that would describe it as a conflict.

If you definitely know it's a conflict issue try doing :

mvn dependency:tree

And isolate the replica jars and remove them from the dependencies in maven using the excludes tag.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM