Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Eric Hartmann 05cc0b97a0 [SONAR-5235] : Test deployment without the phase verify pirms 10 gadiem
plugins Release 4.3 pirms 10 gadiem
sonar-application Release 4.3 pirms 10 gadiem
sonar-batch Release 4.3 pirms 10 gadiem
sonar-batch-maven-compat Release 4.3 pirms 10 gadiem
sonar-check-api Release 4.3 pirms 10 gadiem
sonar-colorizer Release 4.3 pirms 10 gadiem
sonar-core Release 4.3 pirms 10 gadiem
sonar-deprecated Release 4.3 pirms 10 gadiem
sonar-duplications Release 4.3 pirms 10 gadiem
sonar-graph Release 4.3 pirms 10 gadiem
sonar-home Release 4.3 pirms 10 gadiem
sonar-java-api Release 4.3 pirms 10 gadiem
sonar-markdown Release 4.3 pirms 10 gadiem
sonar-maven-plugin Release 4.3 pirms 10 gadiem
sonar-maven3-plugin Release 4.3 pirms 10 gadiem
sonar-plugin-api Release 4.3 pirms 10 gadiem
sonar-server Release 4.3 pirms 10 gadiem
sonar-testing-harness Release 4.3 pirms 10 gadiem
sonar-ws-client Release 4.3 pirms 10 gadiem
.gitattributes Tests should be independent from EOL in resources pirms 13 gadiem
.gitignore Ignore Eclipse builder configuration directory pirms 10 gadiem
.mailmap .mailmap file to resolve wrong author names pirms 12 gadiem
COPYING Fix crlf pirms 13 gadiem
KEYS Add Eric Hartmann's key pirms 12 gadiem
README.md Fix URL of Git repository pirms 10 gadiem
copyright.txt Update copyright headers (replace 2013 by 2014) pirms 10 gadiem
pom.xml [SONAR-5235] : Test deployment without the phase verify pirms 10 gadiem
push.sh Add unbreakable build script for mac pirms 12 gadiem
quick-build.bat Remove the profile -Pdev pirms 10 gadiem
quick-build.sh Fix logs of quick-build.sh pirms 10 gadiem
start-mac-h2.sh SONAR-4579 The archive sonar-x.y.zip must be renamed sonarqube-x.y.zip pirms 10 gadiem
third-party-licenses.sh Add third-party-licenses.sh pirms 10 gadiem

README.md

SonarQube

Put your technical debt under control. For more information please see:

Sources

This Git repository is core platform. Plugins are hosted in SonarCommunity and SonarSource organisations.

Checkout Sources

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 "your@email.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

Get sources by executing:

git clone https://github.com/SonarSource/sonarqube.git

Committers must configure their SSH key (see GitHub documentation for Windows and Mac) and clone repository:

git clone git@github.com:SonarSource/sonarqube.git

Build

  • Install JDK 6 or greater
  • Install Maven 3.0.5 or greater
  • Execute mvn clean install. ZIP file of application is generated into sonar-application/target/

Edit Ruby Code

The development mode is used to edit Ruby on Rails code. The application is automatically reloaded when Ruby files are saved. It avoids restarting the server. Changes are reloaded on the fly. Execute one of the following commands from the sonar-server/ directory to start server:

# for embedded database
sonar-server/h2-start.sh

# or for other dbs
sonar-server/mysql-start.sh
sonar-server/postgresql-start.sh

Then Ruby code can be directly edited from sonar-server/src/main/webapp/WEB-INF/app.

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

License

Copyright 2008-2014 SonarSource.

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