If you have never used git before, you need to do some setup first. Run the following commands so that GIT knows your name and email.
git config --global user.name "Your Name" git config --global user.email "email@example.com"
Setup line endings preferences :
For Unix/Mac users :
git config --global core.autocrlf input git config --global core.safecrlf true
For Windows users :
git config --global core.autocrlf true git config --global core.safecrlf true
Sources can be checked out anonymously from GitHub :
git clone git://github.com/SonarSource/sonar.git
Committers must configure their SSH key (see GitHub documentation for Windows and Mac) and clone repository with the following URL :
git clone firstname.lastname@example.org:SonarSource/sonar.git
Increase the memory allocated to Maven (replace 'export' by 'set' on Windows) :
Some artifacts used by SonarQube are not in Central repository (e.g. fikin-ant), so you should ensure that SonarQube repository ( defined in pom.xml ) will be used :
To run a complete build, execute "mvn clean install" in the root of the project directory. To quickly build in development environments, the script "quick-build.sh" does not execute unit tests and compile GWT components for Firefox only.
The distribution is generated in the directory sonar-application/target.
|dev||Deactivated by default. Can be activated with -Pdev|
|release||Deactivated by default. Can be activated with -Prelease|
|javadoc||Deactivated by default. Can be activated with -Pjavadoc|
|m2e||Activated in Eclipse.|
The following guidelines must be applied to SonarQubeand to the plugins that are hosted at Codehaus.
~/Library/Preferences/IntellijIdea/codestyles/on Mac OS