配置sonarqube+maven

本文档详细介绍了如何配置SonarQube和Maven进行代码质量管理。首先,介绍了准备步骤,包括下载SonarQube、SonarScanner、Java JDK 1.7和MySQL 5.7.10。接着,详细阐述了配置MySQL的过程,包括创建配置文件my.ini、安装MySQL服务以及启动服务。然后,讲解了启动SonarQube服务器的方法。再者,配置SonarScanner,修改其配置文件以连接MySQL。此外,还指导在项目中创建sonar-project.properties文件,并添加相关配置。最后,提到了需修改Maven的settings.xml文件,以便Maven项目能与SonarQube集成。
摘要由CSDN通过智能技术生成

准备工作:去到官网下载1.sonarqube4.

                                            2.sonar-runner2.4以前,2.4之后改为sonar-scanner2.5

                                            3.java,jdk1.7

                                            4.mysql 5.7.10,免安装版

                 第一阶段,配置mysql:1.复制my-default.ini,改为my.ini

                                       复制以下内容替换掉my.ini以前内容:

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值