2015-04-23 49 views
0

運行分析。當我運行mvn聲納:聲納項目中,我不斷收到此錯誤:無法在SonarQube 5.1

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli) on project prova: SonarQube 5.1 does not support Maven 3 
[ERROR] -> [Help 1] 

SonarQube日誌(一個位於/ opt /聲納/日誌)是明確的,不顯示任何錯誤。

我想這是一個配置錯誤,但我無法弄清楚如何解決它。 我正在SonarQube 5.1 64位,行家3.1.1和java1.8.0_45-B14在Ubuntu 14.04 64位

[編輯:] 我拼命地跑MVN -V聲納:聲納從我的Windows PC與Maven 3.1.1安裝並得到了同樣的錯誤:

Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:2 
2+0200) 
Maven home: F:\DARKFOX\maven 
Java version: 1.8.0_31, vendor: Oracle Corporation 
Java home: C:\Program Files\Java\jdk1.8.0_31\jre 
Default locale: it_IT, platform encoding: Cp1252 
OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos" 
[INFO] Scanning for projects... 
[INFO] 
[INFO] ------------------------------------------------------------------------ 
[INFO] Building prova 0.0.1-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- sonar-maven-plugin:2.5:sonar (default-cli) @ prova --- 
[INFO] SonarQube version: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset/ 
/EN" "http://www.w3.org/TR/html4/frameset.dtd"> 
<html> 
<head> 
<meta http-equiv='content-type' content='text/html; charset=UTF-8'> 
<meta name="VERSION" content=""> 
<meta name="DATA" content="fwdnode2.registrar-servers.com (98.142.221.8)"> 
<link href=" " rel="shortcut icon" type="image/x-icon"> 
<title></title> 
</head> 
<frameset rows='100%, *' frameborder=no framespacing=0 border=0> 
<frame src="http://server1.darkfoxdev.com:9000/sonar/api/server/version" name=ma 
inwindow frameborder=no framespacing=0 marginheight=0 marginwidth=0></frame> 
</frameset> 
<noframes><h2>Your browser does not support frames. We recommend upgrading your 
browser.</h2><br><br> 
<center>Click <a href="http://server1.darkfoxdev.com:9000/sonar/api/server/versi 
on" >here</a> to enter the site.</center> 
</noframes> 
</html> 


[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1.078s 
[INFO] Finished at: Fri Apr 24 09:21:17 CEST 2015 
[INFO] Final Memory: 9M/155M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (d 
efault-cli) on project prova: SonarQube <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 
4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> 
[ERROR] <html> 
[ERROR] <head> 
[ERROR] <meta http-equiv='content-type' content='text/html; charset=UTF-8'> 
[ERROR] <meta name="VERSION" content=""> 
[ERROR] <meta name="DATA" content="fwdnode2.registrar-servers.com (98.142.221.8) 
"> 
[ERROR] <link href=" " rel="shortcut icon" type="image/x-icon"> 
[ERROR] <title></title> 
[ERROR] </head> 
[ERROR] <frameset rows='100%, *' frameborder=no framespacing=0 border=0> 
[ERROR] <frame src="http://server1.darkfoxdev.com:9000/sonar/api/server/version" 
name=mainwindow frameborder=no framespacing=0 marginheight=0 marginwidth=0></fr 
ame> 
[ERROR] </frameset> 
[ERROR] <noframes><h2>Your browser does not support frames. We recommend upgradi 
ng your browser.</h2><br><br> 
[ERROR] <center>Click <a href="http://server1.darkfoxdev.com:9000/sonar/api/serv 
er/version" >here</a> to enter the site.</center> 
[ERROR] </noframes> 
[ERROR] </html> 
[ERROR] 
[ERROR] does not support Maven 3 
[ERROR] -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit 
ch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please rea 
d the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE 
xception 

[編輯2] 在我安裝sonarqube-4.5.4,爲5.1版本,當我運行mvn聲納同VPS:聲納我犯了同樣的錯誤。 這個問題可以用sonar-maven-plugin來解決嗎?

+0

您可以將-V添加到您的mvn命令行併發送完整日誌嗎? –

+0

請不要在多個支持渠道上發佈您的問題。請參閱http://sonarqube.15.x6.nabble.com/Unable-to-run-analisys-on-SonarQube-5-1-td5034706.html –

+0

我編輯了我的問題與輸出mvn -V聲納:聲納。 對不起,我沒有意識到 – blackfox

回答

0

最後我解決了這個問題,它是webhost屬性的配置問題。 在我的dns配置中,我有一個指向我的聲納地址的urlFrame記錄,如果我將web主機屬性設置爲聲納url而不是urlFrame,那麼一切正常。

相關問題