Skip to content
README.md 1.26 KiB
Newer Older
Simon Brandhof's avatar
Simon Brandhof committed
# SonarQube
Evgeny Mandrikov's avatar
Evgeny Mandrikov committed

Simon Brandhof's avatar
Simon Brandhof committed
Put your technical debt under control. For more information please see:
Evgeny Mandrikov's avatar
Evgeny Mandrikov committed

Simon Brandhof's avatar
Simon Brandhof committed
* Website [sonarqube.org][1]
* [Issue tracker][2]
* [Wiki][3]
Simon Brandhof's avatar
Simon Brandhof committed
* [Developer Toolset](https://github.com/SonarSource/sonar-developer-toolset) for the configuration of Git and IDE
### Build

* Install JDK 6 or greater
* Install Maven 3.0.5 or greater
Simon Brandhof's avatar
Simon Brandhof committed
* Execute `build.sh`. ZIP file of application is generated into sonar-application/target/
### Debug Maven Analysis

Debug Maven analysis by executing `mvnDebug sonar:sonar`. Then attach your IDE to the remote process (the listening port is 8000).

Example in Intellij Idea : Run -> Edit configurations -> Add new configuration -> Remote -> port 8000.

### Profile Maven Analysis with JProfiler

Duplicate $MAVEN_HOME/bin/mvnDebug to mvnJProfiler and replace the property MAVEN_DEBUG_OPTS by:

    MAVEN_DEBUG_OPTS="-Xint -agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/path/to/jprofiler/bin/agent.jar"

Then start JProfiler -> Connect to an application on a remote computer

Simon Brandhof's avatar
Simon Brandhof committed
## License
Evgeny Mandrikov's avatar
Evgeny Mandrikov committed

Simon Brandhof's avatar
Simon Brandhof committed

Licensed under the GNU Lesser General Public License, Version 3.0: http://www.gnu.org/licenses/lgpl.txt

 [1]: http://www.sonarqube.org/
 [2]: http://jira.codehaus.org/browse/SONAR
 [3]: http://docs.sonarqube.org/display/SONAR