SonarQube Scanner for Maven

org.sonarsource.scanner.maven : sonar-maven-plugin

Trigger SonarQube analysis on Maven projects

[Website] ·
11 usages
· 98 stars

Add dependency in Maven / Gradle

<dependency>
    <groupId>org.sonarsource.scanner.maven</groupId>
    <artifactId>sonar-maven-plugin</artifactId>
    <version>3.9.1.2184</version>
</dependency>

How to add dependency in a project

  1. Add dependency to a Maven project
  2. Add dependency to a Gradle project
  3. Add dependency to a SBT Scala project
  4. Add dependency to a Grape project

1. Add dependency to a Maven project

Maven: Add the org.sonarsource.scanner.maven:sonar-maven-plugin library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>org.sonarsource.scanner.maven</groupId>
  <artifactId>sonar-maven-plugin</artifactId>
  <version>3.9.1.2184</version>
</dependency>
</dependencies>

To install org.sonarsource.scanner.maven:sonar-maven-plugin library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the org.sonarsource.scanner.maven:sonar-maven-plugin library to the dependencies section of your build.gradle file:

dependencies {
implementation 'org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184'
}

Gradle Kotlin DSL: Add the org.sonarsource.scanner.maven:sonar-maven-plugin library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184")
}

3. Add dependency to a SBT Scala project

Scala: Add the org.sonarsource.scanner.maven:sonar-maven-plugin library to your build.sbt file:

libraryDependencies += "org.sonarsource.scanner.maven" % "sonar-maven-plugin" % "3.9.1.2184"

4. Add dependency to a Grape project

Grape: Add an annotation org.sonarsource.scanner.maven:sonar-maven-plugin library to your groovy script file:

@Grapes(
    @Grab('org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (7)

Test Dependencies (6)