简体   繁体   English

声纳和Eclipse IAM插件

[英]Sonar and Eclipse IAM Plugin

When I am using the newest IAM Eclipse Plugin for Maven with the current Sonar version on a JDK 6 and I get an error while executing the sonar:sonar goal in 当我在JDK 6上将MIA的最新IAM Eclipse插件与当前Sonar版本一起使用时,在执行以下命令中的sonar:sonar目标时遇到错误

clean install sonar:sonar

The error in eclipse is 蚀中的错误是

23:02:55 MESZ Starting Starting mojoExecution sonar-core:internal
23:03:44 MESZ fatal org.sonar.maven2.BatchMojo#execute() caused a linkage error (java.lang.NoSuchMethodError). Check the realms:
...
 java.lang.NoSuchMethodError:
org.apache.maven.execution.ReactorManager.<init>(Ljava/util/List;)V

Any idea how to fix it? 知道如何解决吗?

PS: If I do a mvn clean install sonar:sonar manually this it not an issue. PS:如果我手动执行mvn clean install sonar:sonar ,这不是问题。

It seems hard to say anything with the current level of detail (it's often preferable to mention the versions of the software you're using: Maven, the sonar plugin, the JDK). 用当前的详细程度似乎很难说什么(通常最好提一下您使用的软件的版本:Maven,声纳插件,JDK)。 Anyway, my suggestion would be to try on the command line first (ie outside of Eclipse). 无论如何,我的建议是先在命令行上尝试(即在Eclipse之外)。 If it doesn't work, update your question with your pom (the sonar plugin part), your maven version, the error trace (with more lines). 如果它不起作用,请使用pom(声纳插件部分),maven版本,错误跟踪(带有更多行)来更新您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM