我mvn声纳:声纳一个项目,当我们使用默认数据库 - 即版本4.5的默认安装时,我们代码的问题记录在sonarqube的技术债务中。它开箱即用:
拦截器0
严重0
少校88
未成年人70
信息12
我将数据源更改为mysql和
拦截器0
严重0
少校0
次要0
信息0
被记录下来。没有错误由mvn或声纳提出。我可以看到所有驱动程序在mvn运行期间加载。
在.m2 / settings.xml中我有
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.jdbc.url>
jdbc:mysql://sonar.company.io:3306/sonar?useUnicode=true&characterEncoding=utf8
</sonar.jdbc.url>
<sonar.jdbc.username>sonar</sonar.jdbc.username>
<sonar.jdbc.password>pass</sonar.jdbc.password>
<sonar.host.url>
http://sonar.company.io:9000
</sonar.host.url>
<sonar.verbose>true</sonar.verbose>
</properties>
</profile>
我可以使用mysql -usonar -ppass -h sonar.company.io通过主机名连接,并且数据库中有内容。
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| sonar |
mysql> show table status;
+---------------------------+--------+---------+------------+-------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------+----------+----------------+---------+
| Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment |
+---------------------------+--------+---------+------------+-------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-----------+----------+----------------+---------+
| action_plans | InnoDB | 10 | Compact | 0 | 0 | 16384 | 0 | 16384 | 4194304 | 1 | 2014-09-30 14:30:17 | NULL | NULL | utf8_bin | NULL | | |
| active_dashboards | InnoDB | 10 | Compact | 5 | 3276 | 16384 | 0 | 32768 | 4194304 | 6 | 2014-09-30 14:30:10 | NULL | NULL | utf8_bin | NULL | | |
| active_rule_parameters | InnoDB | 10 | Compact | 42 | 390 | 16384 | 0 | 0 | 4194304 | 43 | 2014-09-30 14:30:16 | NULL | NULL | utf8_bin | NULL | | |
| active_rules | InnoDB | 10 | Compact | 1099 | 74 | 81920 | 0 | 49152 | 4194304 | 992 | 2014-09-30 14:30:18 | NULL | NULL | utf8_bin | NULL | | |
可能是什么原因?