![](/img/trans.png)
[英]SonarQube - mvn sonar : sonar - NoSuchElementException
[英]mvn sonar:sonar throwing error
我正在為項目使用SONAR。 當我執行mvn sonar:sonar
,它會拋出
java.lang.VerifyError: Instruction type does not match stack map in method
這是在我將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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.