Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a new project to Sonar v.2.9

Tags:

sonarqube

I am using sonar to review my code for a java project. the version that I am using is v.2.9, I am using sonar for the first time. I have no idea how to add project in sonar server. Please help on this

Thanks.

like image 345
user2537893 Avatar asked Jul 01 '13 05:07

user2537893


2 Answers

With Administrator role, you can "Provision" a project.

  1. Log in as administrator
  2. Select Settings from the menu
  3. Select System -> Provisioning from the sub-menu
  4. Click Create (at the very far right of the frame)

enter image description here

like image 73
PatOta Avatar answered Sep 18 '22 13:09

PatOta


It's pretty straight forward with the newest version. All you have to do is installing as the guide. And it will prompt a command which you need to execute with your build tool at the project folder.

For an example for maven it would be like

mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.login=4aa32e977ab1513e3fe5c3ac0c7883528d01a5e8. 

With a command similar to this reports will be sent to the Sonarqube. And code analysis will be done

like image 39
dilantha111 Avatar answered Sep 19 '22 13:09

dilantha111