{"id":11672,"date":"2025-04-18T18:54:55","date_gmt":"2025-04-18T10:54:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/11672.html"},"modified":"2025-04-18T18:54:55","modified_gmt":"2025-04-18T10:54:55","slug":"windows%e4%b8%8b%e9%85%8d%e7%bd%ae-sonarqube-%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e8%b6%85%e8%af%a6%e7%bb%86%e6%9c%89%e7%9b%b8%e5%85%b3%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/11672.html","title":{"rendered":"Windows\u4e0b\u914d\u7f6e SonarQube \u670d\u52a1\u5668\uff08\u8d85\u8be6\u7ec6\u6709\u76f8\u5173\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff09"},"content":{"rendered":"<h3>\u7b80\u4ecb<\/h3>\n<p>SonarQube \u670d\u52a1\u5668\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u4ee3\u7801\u8d28\u91cf\u7ba1\u7406\u5e73\u53f0&#xff0c;\u5b83\u4e13\u95e8\u7528\u4e8e\u6301\u7eed\u5206\u6790\u548c\u6d4b\u91cf\u9879\u76ee\u6e90\u4ee3\u7801\u7684\u8d28\u91cf \u3002\u901a\u8fc7 SonarQube&#xff0c;\u6211\u4eec\u53ef\u4ee5\u68c0\u6d4b\u51fa\u9879\u76ee\u4e2d\u7684\u91cd\u590d\u4ee3\u7801\u3001\u6f5c\u5728\u7684 Bug\u3001\u4ee3\u7801\u89c4\u8303\u3001\u5b89\u5168\u6027\u6f0f\u6d1e\u7b49\u95ee\u9898&#xff0c;\u5e76\u901a\u8fc7 SonarQube \u7684 Web \u754c\u9762\u5c55\u793a\u51fa\u6765\u3002 SonarQube \u652f\u6301\u5bf9\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684\u626b\u63cf&#xff0c;\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e Java\u3001C#\u3001JavaScript\u3001C&#043;&#043;\u3001Python \u7b49\u3002\u5b83\u6db5\u76d6\u4e86\u7f16\u7a0b\u8bed\u8a00\u7684\u9759\u6001\u626b\u63cf\u89c4\u5219&#xff0c;\u5305\u62ec\u4ee3\u7801\u7f16\u5199\u89c4\u8303\u548c\u5b89\u5168\u89c4\u8303 \u3002<\/p>\n<p>SonarQube\u5b98\u65b9\u6587\u6863 SonarQube\u5b98\u65b9\u4e0b\u8f7d\u5730\u5740<\/p>\n<h3>\u4e00\u3001\u73af\u5883\u51c6\u5907<\/h3>\n<h4>\u786e\u4fdd\u4f60\u7684\u7cfb\u7edf\u7b26\u5408\u4ee5\u4e0b\u8981\u6c42&#xff1a;<\/h4>\n<p>\u64cd\u4f5c\u7cfb\u7edf&#xff1a;Windows 11 \u5185\u5b58&#xff1a;\u81f3\u5c11 4GB RAM \u786c\u76d8\u7a7a\u95f4&#xff1a;\u81f3\u5c11 1GB \u53ef\u7528\u7a7a\u95f4 Java&#xff1a;JDK 17 \u6570\u636e\u5e93&#xff1a;SQL Server \u6216\u5176\u4ed6\u652f\u6301\u7684\u6570\u636e\u5e93\u7248\u672c<\/p>\n<h4>\u786e\u4fdd\u5f53\u524dsonarqube\u7248\u672c\u7684\u8981\u6c42<\/h4>\n<p>\u4f8b\u5982\u6211\u4f7f\u7528\u7684\u662fsonarqube 10.7&#xff0c;\u4ed6\u9700\u8981 JDK17\u4ee5\u4e0a\u7684\u7248\u672c\u3002 \u4ee5\u4e0b\u4e3a\u6211\u90e8\u7f72\u65f6\u7528\u5230\u7684\u6240\u6709\u6587\u4ef6&#xff1a; sonarqube-10.7.0.96327 jdk-17_windows-x64 sonar-scanner-cli-6.2.1.4610-windows-x64 SQL Server 2022<\/p>\n<h3>\u4e8c\u3001\u4e0b\u8f7d\u5e76\u5b89\u88c5 Java<\/h3>\n<p>SonarQube \u9700\u8981 Java \u73af\u5883\u3002\u4f60\u53ef\u4ee5\u4ece Oracle \u5b98\u7f51\u4e0b\u8f7d JDK 17 \u7684\u5b89\u88c5\u5305&#xff0c;\u5e76\u6309\u7167\u9ed8\u8ba4\u8bbe\u7f6e\u8fdb\u884c\u5b89\u88c5\u3002 \u5b89\u88c5\u5b8c\u6210\u540e,\u914d\u7f6e\u73af\u5883\u53d8\u91cfJAVA_HOME\u3001CLASSPATH\u3001Path\u3002 \u8bbe\u7f6e JAVA_HOME \u73af\u5883\u53d8\u91cf\u4e3a JDK \u7684\u5b89\u88c5\u8def\u5f84&#xff0c;\u4f8b\u5982&#xff1a;D:\\\\Program Files\\\\Java\\\\jdk-17 \u8bbe\u7f6e CLASSPATH \u73af\u5883\u53d8\u91cf\u4e3a .;%JAVA_HOME%\\\\lib \u5728 PATH \u73af\u5883\u53d8\u91cf\u4e2d\u6dfb\u52a0 %JAVA_HOME%\\\\bin<\/p>\n<h3>\u4e09\u3001\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6570\u636e\u5e93<\/h3>\n<p>\u4e0b\u8f7d\u5e76\u5b89\u88c5SQL Server 2022&#xff08;\u6216\u5176\u4ed6\u652f\u6301\u7684\u6570\u636e\u5e93&#xff09;\u3002 \u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a sonar \u7684\u6570\u636e\u5e93\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105453-68022f7dd2e65.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u56db\u3001\u5b89\u88c5SonarQube<\/h3>\n<h4>\u4e0b\u8f7d SonarQube<\/h4>\n<p>\u4ece SonarQube \u5b98\u7f51\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684\u5b89\u88c5\u5305&#xff0c;\u5e76\u89e3\u538b\u5230\u6307\u5b9a\u76ee\u5f55\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105453-68022f7de0fbe.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u914d\u7f6eSonarQube<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105454-68022f7e00717.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u7f16\u8f91 SonarQube \u7684 conf\\\\sonar.properties \u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<p># \u5728\u914d\u7f6e\u6587\u4ef6\u5f00\u5934\u589e\u52a0\u4ee5\u4e0b\u914d\u7f6e<br \/>\n# \u6570\u636e\u5e93\u8fde\u63a5\u53c2\u6570<br \/>\nsonar<span class=\"token punctuation\">.<\/span>jdbc<span class=\"token punctuation\">.<\/span>username<span class=\"token operator\">&#061;<\/span>sa<br \/>\nsonar<span class=\"token punctuation\">.<\/span>jdbc<span class=\"token punctuation\">.<\/span>password<span class=\"token operator\">&#061;<\/span><span class=\"token number\">123456<\/span><br \/>\nsonar<span class=\"token punctuation\">.<\/span>jdbc<span class=\"token punctuation\">.<\/span>url<span class=\"token operator\">&#061;<\/span>jdbc<span class=\"token operator\">:<\/span>sqlserver<span class=\"token operator\">:<\/span><span class=\"token comment\">\/\/\u4f60\u7684IP\u5730\u5740;databaseName&#061;sonar;integratedSecurity&#061;false;encrypt&#061;false<\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token expression\">Web\u914d\u7f6e<\/span><\/span><br \/>\nsonar<span class=\"token punctuation\">.<\/span>web<span class=\"token punctuation\">.<\/span>host<span class=\"token operator\">&#061;<\/span> \u4f60\u7684IP\u5730\u5740<br \/>\nsonar<span class=\"token punctuation\">.<\/span>web<span class=\"token punctuation\">.<\/span>port<span class=\"token operator\">&#061;<\/span><span class=\"token number\">9000<\/span><br \/>\n# \u6587\u4ef6\u914d\u7f6e<br \/>\nsonar<span class=\"token punctuation\">.<\/span>path<span class=\"token punctuation\">.<\/span>data<span class=\"token operator\">&#061;<\/span>data<br \/>\nsonar<span class=\"token punctuation\">.<\/span>path<span class=\"token punctuation\">.<\/span>temp<span class=\"token operator\">&#061;<\/span>temp<\/p>\n<h4>\u542f\u52a8 SonarQube<\/h4>\n<p>\u5728 SonarQube \u7684 bin \u76ee\u5f55\u4e0b&#xff0c;\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u6267\u884c\u76f8\u5e94\u7684\u542f\u52a8\u811a\u672c\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105454-68022f7e0f6db.png\" alt=\" bin \u76ee\u5f55\u4e0b\" \/> \u542f\u52a8StartSonar.bat <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105454-68022f7e1b2c5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u542f\u52a8\u6210\u529f\u540e&#xff0c;\u8bbf\u95ee http:\/\/localhost:9000 \u8fdb\u5165 SonarQube \u767b\u5f55\u754c\u9762&#xff0c;\u9ed8\u8ba4\u7528\u6237\u540d\u5bc6\u7801\u4e3a admin\/admin\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105454-68022f7e2582c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u4e94\u3001\u4f7f\u7528 SonarQube \u5206\u6790\u4ee3\u7801<\/h3>\n<h4>\u521b\u5efa\u65b0\u9879\u76ee<\/h4>\n<li>\u5728 SonarQube \u4eea\u8868\u677f\u4e2d&#xff0c;\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684 Projects&#xff08;\u9879\u76ee&#xff09;\u83dc\u5355\u3002<\/li>\n<li>\u70b9\u51fb Create Project&#xff08;\u521b\u5efa\u9879\u76ee&#xff09;\u6309\u94ae\u3002<\/li>\n<h4>\u914d\u7f6e\u9879\u76ee<\/h4>\n<li>\u5728 Create Project \u9875\u9762\u4e2d&#xff0c;\u8f93\u5165\u9879\u76ee\u7684 Project Key&#xff08;\u9879\u76ee\u952e&#xff09;\u548c Project Name&#xff08;\u9879\u76ee\u540d\u79f0&#xff09;\u3002<\/li>\n<li>\u70b9\u51fb Set Up&#xff08;\u8bbe\u7f6e&#xff09;\u6309\u94ae\u3002<\/li>\n<h4>\u5206\u6790\u9879\u76ee<\/h4>\n<p>\u751f\u6210\u9879\u76ee\u5bc6\u94a5&#xff0c;\u6309\u6b65\u9aa4\u6267\u884c\u5206\u6790\u9879\u76ee\u6307\u4ee4<\/p>\n<h3>\u516d\u3001\u542f\u52a8 SonarQube\u76f8\u5173\u95ee\u9898\u89e3\u51b3<\/h3>\n<p>SonarQube\u542f\u52a8\u8fc7\u7a0b\u4e2d\u4f1a\u4ea7\u751f\u4e09\u4e2a\u65e5\u5fd7&#xff0c;\u65e5\u5fd7\u90fd\u5728${\u5b89\u88c5\u76ee\u5f55}\/logs\/&#xff0c;\u5206\u522b\u4e3aes.log\u3001sonar.log\u3001web.log\u3002 \u8fd0\u884c\u65f6\u51fa\u73b0\u7684\u95ee\u9898\u90fd\u53ef\u4ee5\u901a\u8fc7\u67e5\u770b\u8fd9\u4e09\u4e2a\u65e5\u5fd7\u6765\u8fdb\u884c\u5b9a\u4f4d\u89e3\u51b3\u3002<\/p>\n<p>1\u3001SonarQube \u5728\u542f\u52a8\u65f6\u9047\u5230\u4e86\u6570\u636e\u5e93\u6392\u5e8f\u89c4\u5219\u4e0d\u5339\u914d\u7684\u95ee\u9898&#xff0c; SonarQube \u9700\u8981\u4f7f\u7528 Chinese_PRC_CS_AS&#xff08;\u533a\u5206\u5927\u5c0f\u5199\u548c\u91cd\u97f3&#xff09;\u3002 web.log\u62a5\u9519<\/p>\n<p>ERROR web<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">[<\/span>o<span class=\"token punctuation\">.<\/span>s<span class=\"token punctuation\">.<\/span>s<span class=\"token punctuation\">.<\/span>p<span class=\"token punctuation\">.<\/span>w<span class=\"token punctuation\">.<\/span>PlatformServletContextListener<span class=\"token punctuation\">]<\/span> Web server startup failed<br \/>\norg<span class=\"token punctuation\">.<\/span>springframework<span class=\"token punctuation\">.<\/span>beans<span class=\"token punctuation\">.<\/span>factory<span class=\"token punctuation\">.<\/span>BeanCreationException<span class=\"token operator\">:<\/span> Error creating bean with name &#039;jdk<span class=\"token punctuation\">.<\/span>internal<span class=\"token punctuation\">.<\/span>loader<span class=\"token punctuation\">.<\/span>ClassLoaders$AppClassLoader&#064;<span class=\"token number\">4e25154f<\/span><span class=\"token operator\">&#8211;<\/span>org<span class=\"token punctuation\">.<\/span>sonar<span class=\"token punctuation\">.<\/span>server<span class=\"token punctuation\">.<\/span>platform<span class=\"token punctuation\">.<\/span>db<span class=\"token punctuation\">.<\/span>CheckDatabaseCharsetAtStartup&#039;<span class=\"token operator\">:<\/span> Initialization of bean failed<span class=\"token punctuation\">;<\/span> nested exception is Database collation must be <span class=\"token keyword\">case<\/span><span class=\"token operator\">&#8211;<\/span>sensitive and accent<span class=\"token operator\">&#8211;<\/span>sensitive<span class=\"token punctuation\">.<\/span> It is Chinese_PRC_CI_AS but should be Chinese_PRC_CS_AS<span class=\"token punctuation\">.<\/span><\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u66f4\u6539\u6570\u636e\u5e93\u7684\u6392\u5e8f\u89c4\u5219\u3002\u4ee5\u4e0b\u662f\u6b65\u9aa4&#xff1a;<\/p>\n<li>\u5907\u4efd\u6570\u636e\u5e93&#xff1a;\u5728\u8fdb\u884c\u4efb\u4f55\u66f4\u6539\u4e4b\u524d&#xff0c;\u786e\u4fdd\u4f60\u5df2\u7ecf\u5907\u4efd\u4e86\u6570\u636e\u5e93&#xff0c;\u4ee5\u9632\u51fa\u73b0\u610f\u5916\u60c5\u51b5\u3002<\/li>\n<li>\u66f4\u6539\u6570\u636e\u5e93\u6392\u5e8f\u89c4\u5219&#xff1a; \u2022 \u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f SQL Server&#xff0c;\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b SQL \u547d\u4ee4\u6765\u66f4\u6539\u6570\u636e\u5e93\u7684\u6392\u5e8f\u89c4\u5219&#xff1a;<\/li>\n<p><span class=\"token keyword\">ALTER<\/span> <span class=\"token keyword\">DATABASE<\/span> <span class=\"token punctuation\">[<\/span>YourDatabaseName<span class=\"token punctuation\">]<\/span> <span class=\"token keyword\">COLLATE<\/span> Chinese_PRC_CS_AS<span class=\"token punctuation\">;<\/span><\/p>\n<p>2\u3001SonarQube \u5728\u542f\u52a8\u65f6\u65e0\u6cd5\u7ed1\u5b9a\u5230\u6307\u5b9a\u7684\u7f51\u7edc\u5730\u5740\u6216\u7aef\u53e3\u3002 web.log\u62a5\u9519<\/p>\n<p>WARN  web<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">[<\/span>o<span class=\"token punctuation\">.<\/span>s<span class=\"token punctuation\">.<\/span>p<span class=\"token punctuation\">.<\/span>ProcessEntryPoint<span class=\"token punctuation\">]<\/span> Fail to start Web Server<br \/>\njava<span class=\"token punctuation\">.<\/span>lang<span class=\"token punctuation\">.<\/span>IllegalStateException<span class=\"token operator\">:<\/span> Fail to create or clean<span class=\"token operator\">&#8211;<\/span>up directory D<span class=\"token operator\">:<\/span>\\\\Program Files\\\\sonarqube<span class=\"token operator\">&#8211;<\/span><span class=\"token number\">10.7<\/span><span class=\"token number\">.0<\/span><span class=\"token number\">.96327<\/span>\\\\data\\\\web\\\\deploy<\/p>\n<p>\u53ef\u80fd\u7684\u539f\u56e0\u5305\u62ec&#xff1a;<\/p>\n<ul>\n<li>sonar.properties \u914d\u7f6e \u89e3\u51b3\u65b9\u6848&#xff1a;\u786e\u8ba4 SonarQube \u7684\u7f51\u7edc\u914d\u7f6e\u662f\u5426\u6b63\u786e\u3002\u5982\u679c sonar.web.host \u914d\u7f6e\u4e3a localhost \u6216\u5176\u4ed6\u65e0\u6548\u5730\u5740&#xff0c;\u53ef\u80fd\u4f1a\u5bfc\u81f4\u7ed1\u5b9a\u5931\u8d25\u3002\u9700\u8981\u663e\u5f0f\u8bbe\u7f6e\u4e3a 127.0.0.1 \u6216\u5b9e\u9645\u7684 IP \u5730\u5740\u3002<\/li>\n<\/ul>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span> <span class=\"token expression\">Web\u914d\u7f6e<\/span><\/span><br \/>\nsonar<span class=\"token punctuation\">.<\/span>web<span class=\"token punctuation\">.<\/span>host<span class=\"token operator\">&#061;<\/span> \u4f60\u7684IP\u5730\u5740<br \/>\nsonar<span class=\"token punctuation\">.<\/span>web<span class=\"token punctuation\">.<\/span>port<span class=\"token operator\">&#061;<\/span><span class=\"token number\">9000<\/span><\/p>\n<ul>\n<li>\u7aef\u53e3\u51b2\u7a81 \u89e3\u51b3\u65b9\u6848&#xff1a;\u5982\u679c\u7aef\u53e3 9000 \u88ab\u5360\u7528&#xff0c;\u53ef\u4ee5\u4fee\u6539 SonarQube \u7684\u7aef\u53e3\u3002 \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u7aef\u53e3 9000 \u662f\u5426\u88ab\u5360\u7528\u3002<\/li>\n<\/ul>\n<p>netstat <span class=\"token operator\">&#8211;<\/span>ano <span class=\"token operator\">|<\/span> findstr <span class=\"token operator\">:<\/span><span class=\"token number\">9000<\/span><\/p>\n<ul>\n<li>\u8fd0\u884c\u4e2d\u7684\u670d\u52a1\u672a\u5173\u95ed \u89e3\u51b3\u65b9\u6848&#xff1a;SonarQube \u6bcf\u6b21\u91cd\u542f\u524d\u90fd\u9700\u8981\u624b\u52a8\u5173\u95edjava\u8fdb\u7a0b\u3002 \u5173\u95ed\u6240\u6709\u8fdb\u7a0b\u540e&#xff0c;\u91cd\u542f&#xff0c;\u89e3\u51b3\u8be5\u95ee\u9898\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105454-68022f7e3ab09.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e8\u6b21\uff0c\u6536\u85cf17\u6b21\u3002SonarQube \u670d\u52a1\u5668\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u4ee3\u7801\u8d28\u91cf\u7ba1\u7406\u5e73\u53f0\uff0c\u5b83\u4e13\u95e8\u7528\u4e8e\u6301\u7eed\u5206\u6790\u548c\u6d4b\u91cf\u9879\u76ee\u6e90\u4ee3\u7801\u7684\u8d28\u91cf\u3002\u901a\u8fc7 SonarQube\uff0c\u6211\u4eec\u53ef\u4ee5\u68c0\u6d4b\u51fa\u9879\u76ee\u4e2d\u7684\u91cd\u590d\u4ee3\u7801\u3001\u6f5c\u5728\u7684 Bug\u3001\u4ee3\u7801\u89c4\u8303\u3001\u5b89\u5168\u6027\u6f0f\u6d1e\u7b49\u95ee\u9898\uff0c\u5e76\u901a\u8fc7 SonarQube \u7684 Web \u754c\u9762\u5c55\u793a\u51fa\u6765\u3002SonarQube \u652f\u6301\u5bf9\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684\u626b\u63cf\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e Java\u3001C#\u3001JavaScript\u3001C++\u3001Python \u7b49\u3002\u5b83\u6db5\u76d6\u4e86\u7f16\u7a0b\u8bed\u8a00\u7684\u9759\u6001\u626b\u63cf\u89c4\u5219\uff0c\u5305\u62ec\u4ee3\u7801\u7f16\u5199\u89c4\u8303\u548c\u5b89\u5168\u89c4\u8303\u3002SonarQube\u5b98\u65b9\u6587\u6863SonarQube\u5b98\u65b9\u4e0b\u8f7d\u5730\u5740\u3002_sonarqube windows<\/p>\n","protected":false},"author":2,"featured_media":11665,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[597,596,149,598,43,44],"topic":[],"class_list":["post-11672","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ci-cd","tag-sonarqube","tag-windows","tag-598","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Windows\u4e0b\u914d\u7f6e SonarQube \u670d\u52a1\u5668\uff08\u8d85\u8be6\u7ec6\u6709\u76f8\u5173\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/11672.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Windows\u4e0b\u914d\u7f6e SonarQube \u670d\u52a1\u5668\uff08\u8d85\u8be6\u7ec6\u6709\u76f8\u5173\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e8\u6b21\uff0c\u6536\u85cf17\u6b21\u3002SonarQube \u670d\u52a1\u5668\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u4ee3\u7801\u8d28\u91cf\u7ba1\u7406\u5e73\u53f0\uff0c\u5b83\u4e13\u95e8\u7528\u4e8e\u6301\u7eed\u5206\u6790\u548c\u6d4b\u91cf\u9879\u76ee\u6e90\u4ee3\u7801\u7684\u8d28\u91cf\u3002\u901a\u8fc7 SonarQube\uff0c\u6211\u4eec\u53ef\u4ee5\u68c0\u6d4b\u51fa\u9879\u76ee\u4e2d\u7684\u91cd\u590d\u4ee3\u7801\u3001\u6f5c\u5728\u7684 Bug\u3001\u4ee3\u7801\u89c4\u8303\u3001\u5b89\u5168\u6027\u6f0f\u6d1e\u7b49\u95ee\u9898\uff0c\u5e76\u901a\u8fc7 SonarQube \u7684 Web \u754c\u9762\u5c55\u793a\u51fa\u6765\u3002SonarQube \u652f\u6301\u5bf9\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684\u626b\u63cf\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e Java\u3001C#\u3001JavaScript\u3001C++\u3001Python \u7b49\u3002\u5b83\u6db5\u76d6\u4e86\u7f16\u7a0b\u8bed\u8a00\u7684\u9759\u6001\u626b\u63cf\u89c4\u5219\uff0c\u5305\u62ec\u4ee3\u7801\u7f16\u5199\u89c4\u8303\u548c\u5b89\u5168\u89c4\u8303\u3002SonarQube\u5b98\u65b9\u6587\u6863SonarQube\u5b98\u65b9\u4e0b\u8f7d\u5730\u5740\u3002_sonarqube windows\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/11672.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T10:54:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105453-68022f7dd2e65.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/11672.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/11672.html\",\"name\":\"Windows\u4e0b\u914d\u7f6e SonarQube \u670d\u52a1\u5668\uff08\u8d85\u8be6\u7ec6\u6709\u76f8\u5173\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T10:54:55+00:00\",\"dateModified\":\"2025-04-18T10:54:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/11672.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/11672.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/11672.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Windows\u4e0b\u914d\u7f6e SonarQube \u670d\u52a1\u5668\uff08\u8d85\u8be6\u7ec6\u6709\u76f8\u5173\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Windows\u4e0b\u914d\u7f6e SonarQube \u670d\u52a1\u5668\uff08\u8d85\u8be6\u7ec6\u6709\u76f8\u5173\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/11672.html","og_locale":"zh_CN","og_type":"article","og_title":"Windows\u4e0b\u914d\u7f6e SonarQube \u670d\u52a1\u5668\uff08\u8d85\u8be6\u7ec6\u6709\u76f8\u5173\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e8\u6b21\uff0c\u6536\u85cf17\u6b21\u3002SonarQube \u670d\u52a1\u5668\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u4ee3\u7801\u8d28\u91cf\u7ba1\u7406\u5e73\u53f0\uff0c\u5b83\u4e13\u95e8\u7528\u4e8e\u6301\u7eed\u5206\u6790\u548c\u6d4b\u91cf\u9879\u76ee\u6e90\u4ee3\u7801\u7684\u8d28\u91cf\u3002\u901a\u8fc7 SonarQube\uff0c\u6211\u4eec\u53ef\u4ee5\u68c0\u6d4b\u51fa\u9879\u76ee\u4e2d\u7684\u91cd\u590d\u4ee3\u7801\u3001\u6f5c\u5728\u7684 Bug\u3001\u4ee3\u7801\u89c4\u8303\u3001\u5b89\u5168\u6027\u6f0f\u6d1e\u7b49\u95ee\u9898\uff0c\u5e76\u901a\u8fc7 SonarQube \u7684 Web \u754c\u9762\u5c55\u793a\u51fa\u6765\u3002SonarQube \u652f\u6301\u5bf9\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684\u626b\u63cf\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e Java\u3001C#\u3001JavaScript\u3001C++\u3001Python \u7b49\u3002\u5b83\u6db5\u76d6\u4e86\u7f16\u7a0b\u8bed\u8a00\u7684\u9759\u6001\u626b\u63cf\u89c4\u5219\uff0c\u5305\u62ec\u4ee3\u7801\u7f16\u5199\u89c4\u8303\u548c\u5b89\u5168\u89c4\u8303\u3002SonarQube\u5b98\u65b9\u6587\u6863SonarQube\u5b98\u65b9\u4e0b\u8f7d\u5730\u5740\u3002_sonarqube windows","og_url":"https:\/\/www.wsisp.com\/helps\/11672.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T10:54:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418105453-68022f7dd2e65.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/11672.html","url":"https:\/\/www.wsisp.com\/helps\/11672.html","name":"Windows\u4e0b\u914d\u7f6e SonarQube \u670d\u52a1\u5668\uff08\u8d85\u8be6\u7ec6\u6709\u76f8\u5173\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T10:54:55+00:00","dateModified":"2025-04-18T10:54:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/11672.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/11672.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/11672.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Windows\u4e0b\u914d\u7f6e SonarQube \u670d\u52a1\u5668\uff08\u8d85\u8be6\u7ec6\u6709\u76f8\u5173\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/11672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=11672"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/11672\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/11665"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=11672"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=11672"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=11672"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=11672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}