Build sonarqube 6.7 from source using maven

(Lukáš Vasek) #1

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    sonarqube 6.7 branch
  • what are you trying to achieve
    build sonarqube from source
  • what have you tried so far to achieve this
    mvn clean install -Dmaven.javadoc.skip=true -Dmaven.test.skip=true

hello what are the steps to build sonarqube from sources? I have used the command abowe, but it doesn’t work.
I get this error:

[ERROR] Failed to execute goal on project sonar-db-migration: Could not resolve dependencies for project org.sonarsource.sonarqube:sonar-db-migration:jar:6.7.7-SNAPSHOT: Could not find artifact org.sonarsource.sonarqube:sonar-db-core:jar:tests:6.7.7-SNAPSHOT

(Sébastien Lesaint) #2


Maven does not find a test dependency.
You should compile the tests and only skip their execution.

See, you should use -DskipTests instead of -Dmaven.test.skip=true