2015-12-10 100 views
9

在執行sonar:sonar goal on maven projectMaven的:未能執行目標org.codehaus.mojo:聲納Maven的插件:2.7.1:聲納

使用sonar-maven-plugin2.7.15.0

錯誤嘗試獲取錯誤:

Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project XXX: 
Execution default-cli of goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar failed: Unable to load the mojo 'sonar' 
in the plugin 'org.codehaus.mojo:sonar-maven-plugin:2.7.1'. 
A required class is missing: Lorg/apache/maven/rtinfo/RuntimeInformation; 
+3

你是什麼版本的Maven? –

+1

Maven版本是m2e 1.3 – Swati

+1

這是m2e版本。對於mvn,請嘗試'mvn -version' –

回答

1

問題已解決。 我使用了Sonar 5.2,Eclipse Luna 4.4.2(SR2)和Maven-eclipse-plugin 1.6(download.eclipse.org/technology/m2e/releases/1.6)的組合。 eclipse的最新版本允許我安裝m2e 1.6,最近的聲納版本允許我在沒有代理錯誤的情況下執行sonar插件。

相關問題