使用sonarqube异常 — Unsupported major.minor version 52.0
2017-08-08 00:00
591 查看
单位有同事的jdk版本是1.7,在使用sonarqube的时候一直报异常:
org.sonarsource.scanner.maven.SonarQubeMojo not present
百度了一堆结果,最后在github上发现了解决方法:
https://github.com/sonar-intellij-plugin/sonar-intellij-plugin/issues/167
also this is unrelated to the plugin, sonarqube has updated the default version of the sonar-maven-plugin to version 3.2. This requires java 8.
To solve the issue you need to update the JAVA_HOME to version 1.8 or use older version of sonar-maven-plugin, example:
or
就是说sonarqube默认已经升级到jdk1.8了,自动下载的sonar-maven-plugin是3.3.x,不支持1.8以下的版本了,如果你一定要用旧版本,就下载sonar-maven-plugin2.6。
问题解决了!
org.sonarsource.scanner.maven.SonarQubeMojo not present
Caused by: java.lang.UnsupportedClassVersionError: org/sonarsource/scanner/maven/SonarQubeMojo : Unsupported major.minor version 52.0
java.lang.TypeNotPresentException: Type org.sonarsource.scanner.maven.SonarQubeMojo not present
百度了一堆结果,最后在github上发现了解决方法:
https://github.com/sonar-intellij-plugin/sonar-intellij-plugin/issues/167
also this is unrelated to the plugin, sonarqube has updated the default version of the sonar-maven-plugin to version 3.2. This requires java 8.
To solve the issue you need to update the JAVA_HOME to version 1.8 or use older version of sonar-maven-plugin, example:
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/"
or
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>sonar-maven-plugin</artifactId> <version>2.6</version> </plugin>
就是说sonarqube默认已经升级到jdk1.8了,自动下载的sonar-maven-plugin是3.3.x,不支持1.8以下的版本了,如果你一定要用旧版本,就下载sonar-maven-plugin2.6。
问题解决了!
相关文章推荐
- 解决org/sonarsource/scanner/maven/SonarQubeMojo : Unsupported major.minor version 52.0
- UnsupportedClassVersionError: SonarQubeMojo : Unsupported major.minor version 52.0
- sonarqube 提示Unsupported major.minor version 52.0 解决办法
- Tomcat9.0启动tomcat unsupported major.minor version 52.0异常
- java.lang.UnsupportedClassVersionError: action/Login : Unsupported major.minor version 52.0 (unable to load class action.Login)异常
- 解决AndroidStudio编译异常DefaultAndroidProject : Unsupported major.minor version 52.0
- eclipse 运行时异常 Unsupported major.minor version 52.0 原因
- Scala 安装及异常解决: Unsupported major.minor version 52.0
- Eclipse运行main类抛出异常:Unsupported major.minor version 52.0
- Drools7.0.0.Final Unsupported major.minor version 52.0异常
- Unsupported major.minor version 52.0异常
- 程序运行抛出Unsupported major.minor version 52.0异常
- Java Unsupported major.minor version 52.0异常
- 关于使用eclipse开发android应用,更换jdk1.8之后遇到的eclipse闪退以及更换jdk1.7之后运行项目报错:Unsupported major.minor version 52.0
- Oozie时出现Exception in thread "main" java.lang.UnsupportedClassVersionError: com/mysql/jdbc/Driver : Unsupported major.minor version 52.0?
- sdk tools 升级到25.0.10,编译APK提示Unsupported major.minor version 52.0
- com/android/dx/command/dexer/Main : Unsupported major.minor version 52.0
- com/android/dx/command/Main : Unsupported major.minor version 52.0
- cocos编译安卓程序:Unsupported major.minor version 52.0
- 运行一个简单的main都报“*****Unsupported major.minor version 52.0”的原因