Java CXF的Maven依赖性
我在Java项目中使用Maven,并得到了这个错误Java CXF的Maven依赖性,java,maven,cxf,Java,Maven,Cxf,我在Java项目中使用Maven,并得到了这个错误 java.lang.NoClassDefFoundError: org/apache/cxf/logging/FaultListener 我想我需要包含上面的maven依赖项。我已经在下面发布了pom.xml中的代码片段 <properties> <cxf.version>2.5.2</cxf.version>
java.lang.NoClassDefFoundError: org/apache/cxf/logging/FaultListener
我想我需要包含上面的maven依赖项。我已经在下面发布了pom.xml中的代码片段
<properties>
<cxf.version>2.5.2</cxf.version>
</properties>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-javamail_1.4_spec</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-activation_1.1_spec</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-security-xml</artifactId>
<version>${cxf.version}</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-ws-security</artifactId>
<version>${cxf.version}</version>
</dependency>
2.5.2
org.apache.cxf
cxf rt前端jaxws
${cxf.version}
org.apache.geronimo.specs
geronimo-javamail_1.4_规范
org.apache.geronimo.specs
geronimo-activation_1.1_规范
org.apache.cxf
cxf rt传输http
${cxf.version}
org.apache.cxf
cxf rt前端jaxrs
${cxf.version}
org.apache.cxf
cxf rt rs安全xml
${cxf.version}
org.apache.cxf
cxf rt ws-security
${cxf.version}
我对Maven不太满意。有人能帮我吗。这个类在
org.apache.cxf:cxfapi
中。其他cxf工件(如cxf rt transports http)将此作为依赖项,因此您应该已经有了此依赖项
构建项目时是否包含cxf api jar?war中的cxf api jar版本是什么?