1

CPPプロジェクトを分析したときに、以下のエラーが発生しました。私はソナー3.1と3.4でプロジェクトを分析しました。しかし、両方のソナーバージョンで同じエラーが発生しました。問題を見つけて解決するのを手伝ってください。

[ERROR] Failed to execute goal org.codehaus.sonar-plugins:maven-cpp-plugin:0.4:metrics (default-cli
) on project ConnectJet: Execution default-cli of goal org.codehaus.sonar-plugins:maven-cpp-plugin:
0.4:metrics failed: An API incompatibility was encountered while executing      
org.codehaus.sonar-plugins:maven-cpp-plugin:0.4:metrics: java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader,   
but this RI (from jar:file:/C:/Users/Renjith.R/.m2/repository/com/sun/xml/bind/j
axb-impl/2.1.12/jaxb-impl-2.1.12.jar!/com/sun/xml/bind/v2/model   
/impl/ModelBuilder.class) needs 2.1
API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap   
classloader. (See http://java.sun.com/j2se/1.5.0/docs/guide/standards/)

事前にありがとうRenjith.R

4

1 に答える 1

1

それが機能したので、答えとしてコメントを移動します...

jaxbこの問題は、Javaによって提供され、ソナーに必要なAPIのバージョンが競合していることが原因である可能性があります。

'jaxb-api.jarendorsed`in theディレクトリをinstructexとしてエラーメッセージに配置します。

于 2013-01-04T09:56:47.730 に答える