请问有谁能帮我解决下面的错误。
以下是需要配置的组件版本:
- SonarQube 5.1.2
- Soanr-Runner 2.4
- Java 1.7 [我必须使用1.7,因为我的代码仅支持1.7]
- mavn 3.3.9
- sonar-cobertura-plugin-1.6.3
- sonar-findbugs-plugin-3.3
- cobertura 2.6
执行命令
mvn -fn -e org.sonarsource.scanner.maven:sonar-maven-plugin:RELEASE:sonar -Dsonar.jdbc.url="jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance" -Dsonar.host.url=http://localhost:9000 -DskipTests
在控制台窗口中,我遇到了错误。
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:
3.2:sonar (default-cli) on project NWT_Core: Execution default-cli of goal org.s
onarsource.scanner.maven:sonar-maven-plugin:3.2:sonar failed: Unable to load the
mojo 'sonar' in the plugin 'org.sonarsource.scanner.maven:sonar-maven-plugin:3.
2' due to an API incompatibility: org.codehaus.plexus.component.repository.excep
tion.ComponentLookupException: org/sonarsource/scanner/maven/SonarQubeMojo : Unsupported major.minor version 52.0
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin: 3.2:sonar (default-cli) on project NWT_Core: Execution default-cli of goal org.s onarsource.scanner.maven:sonar-maven-plugin:3.2:sonar failed: Unable to load the mojo 'sonar' in the plugin 'org.sonarsource.scanner.maven:sonar-maven-plugin:3. 2' due to an API incompatibility: org.codehaus.plexus.component.repository.excep tion.ComponentLookupException: org/sonarsource/scanner/maven/SonarQubeMojo : Uns upported major.minor version 52.0
。 - Mahesh G