当我分析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
答案 0 :(得分:1)
将评论作为答案移动,因为它有效......
问题可能是由于java提供的jaxb
API的版本冲突而声纳所需。
将'jaxb-api.jar in the
endorsed`目录作为instructex放入错误消息中。