简体   繁体   English

MVN声纳:声纳抛出错误

[英]mvn sonar:sonar throwing error

I'm using SONAR for my project. 我正在为项目使用SONAR。 When I execute mvn sonar:sonar , it throws 当我执行mvn sonar:sonar ,它会抛出

java.lang.VerifyError: Instruction type does not match stack map in method

This is after I update my JDK to 1.7.0_09 and maven to 3.0.4. 这是在我将JDK更新为1.7.0_09并将maven更新为3.0.4之后。

Please Help me. 请帮我。

Please configure server in your setting.xml of maven. 请在您的maven的setting.xml中配置服务器。

Updated 更新

add In your setting.xml of maven 在您的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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM