Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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;
like image 467
Swati Thakare Avatar asked Dec 10 '15 07:12

Swati Thakare


1 Answers

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.

like image 111
Swati Thakare Avatar answered Sep 18 '22 06:09

Swati Thakare