我在我的项目中使用 SONAR。当我执行 mvn sonar:sonar
时,它会抛出
java.lang.VerifyError:指令类型与方法中的堆栈映射不匹配
这是我将 JDK 更新到 1.7.0_09 并将 maven 更新到 3.0.4 后的结果。
请帮助我。
最佳答案
请在maven的setting.xml中配置服务器。
已更新
在maven的setting.xml
中添加
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.jdbc.url>jdbc:postgresql://localhost/sonar</sonar.jdbc.url>
<sonar.jdbc.driver>org.postgresql.Driver</sonar.jdbc.driver>
<sonar.jdbc.username>user</sonar.jdbc.username>
<sonar.jdbc.password>password</sonar.jdbc.password>
<!-- SERVER ON A REMOTE HOST -->
<sonar.host.url>http://localhost:9000</sonar.host.url>
</properties>
</profile>
关于java - mvn Sonar :sonar throwing error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13951409/