Gradle war - 类路径

时间:2016-06-28 18:16:24

标签: java web-services gradle spring-boot cxf

我有以下gradle编译依赖项:

compile 'org.apache.cxf:cxf-rt-frontend-jaxws:3.1.6'
compile 'org.apache.cxf:cxf-rt-transports-http:3.1.6'
compile 'org.apache.cxf:cxf-rt-ws-security:3.1.6'
compile 'org.apache.cxf:cxf-common-utilities:2.5.11'

执行完战争后,我从两个方面获得了ReflectionUtil类:org.apache.cxf:cxf-common-utilities:2.5.11和org.apache.cxf:cxf-core:3.1.6

导致noSuchMethodException,因为Spring使用了错误的类。

如何避免它,并保留两个依赖项? 我已尝试过不同版本等,但没有成功。

0 个答案:

没有答案