运行Apache Camel时出错

La-*_*eja 2 java routing apache-camel

我将在这里阅读教程:Apache Camel报告事件第5部分

我已经复制并粘贴了教程中的代码,但在输入> mvn test或输入时出现此错误
> mvn jetty:run

[ERROR] Failed startup of context 
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@785b38d6{
/camel-example-reportincident,C:\Users\RS88517\Documents\Gravity\
camel-example-reportincident\src\main\webapp} 
org.apache.camel.NoSuchEndpointException: No endpoint could be found for: 
cxf://http://localhost:8080/part-five/webservices/incident?
    serviceClass=org.apache.camel.example.reportincident.ReportIncidentEndpoint
    &wsdlURL=report_incident.wsdl, 
please check your classpath contains the needed camel component jar.
Run Code Online (Sandbox Code Playgroud)

我不确定这里的JAR是什么意思,并且会赞赏一些指示.

Ben*_*Day 5

你需要将camel-cxf依赖项包含在你的项目中......

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-cxf</artifactId>
    <version>x.x.x</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)