简体   繁体   English

Spring Concordion和Sonar无效:罐子冲突?

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

I work on a Gwt/Spring project with maven/jenkins/sonar. 我与Maven / Jenkins /声纳一起从事Gwt / Spring项目。 For my functionnal tests, I use concordion over gwt-test-utils . 对于我的功能测试,我在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. 并隔离副本jar,并使用excludes标签将它们从maven中的依赖项中删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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