简体   繁体   中英

Maven: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar

Getting error while executing sonar:sonar goal on maven project

Tried using sonar-maven-plugin version 2.7.1 and 5.0

Error :

Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project XXX: 
Execution default-cli of goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar failed: Unable to load the mojo 'sonar' 
in the plugin 'org.codehaus.mojo:sonar-maven-plugin:2.7.1'. 
A required class is missing: Lorg/apache/maven/rtinfo/RuntimeInformation;

The issue is resolved. I used combination of Sonar 5.2, Eclipse Luna 4.4.2 (SR2) and Maven-eclipse-plugin 1.6 (download.eclipse.org/technology/m2e/releases/1.6). recent version of eclipse allowed me to install m2e 1.6 and recent sonar version allowed me to execute sonar plugin without proxy error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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