sonar-quality-gates-maven-plugin

This plugin will break the maven build if the project fails the sonarqube quality gate

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка
Группа

Группа

com.hack23.maven
Идентификатор

Идентификатор

sonar-quality-gates-maven-plugin
Последняя версия

Последняя версия

1.0.5
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

sonar-quality-gates-maven-plugin
This plugin will break the maven build if the project fails the sonarqube quality gate
Ссылка на сайт

Ссылка на сайт

https://github.com/Hack23/sonar-quality-gates-maven-plugin
Организация-разработчик

Организация-разработчик

www.hack23.com
Система контроля версий

Система контроля версий

https://github.com/Hack23/sonar-quality-gates-maven-plugin

Скачать sonar-quality-gates-maven-plugin

Как подключить последнюю версию

<plugin>
    <groupId>com.hack23.maven</groupId>
    <artifactId>sonar-quality-gates-maven-plugin</artifactId>
    <version>1.0.5</version>
</plugin>

Зависимости

compile (9)

Идентификатор библиотеки Тип Версия
com.mashape.unirest : unirest-java jar 1.4.9
com.google.guava : guava jar 28.2-jre
org.apache.httpcomponents : httpclient jar 4.5.12
org.apache.httpcomponents : httpasyncclient jar 4.1.4
org.apache.httpcomponents : httpmime jar 4.5.12
org.codehaus.plexus : plexus-utils jar 3.3.0
org.apache.commons : commons-lang3 jar 3.9
com.fasterxml.jackson.core : jackson-databind jar 2.10.3
com.fasterxml.jackson.core : jackson-annotations jar 2.10.3

provided (4)

Идентификатор библиотеки Тип Версия
javax.inject : javax.inject jar 1
org.apache.maven : maven-plugin-api jar 3.6.3
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0
org.apache.maven : maven-core jar 3.6.3

test (5)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.13
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0
org.apache.maven : maven-compat jar 3.6.3
com.openpojo : openpojo jar 0.8.13
org.mockito : mockito-core jar 3.3.3

Модули Проекта

Данный проект не имеет модулей.

Sonar Quality Gates Maven Plugin

Description

This plugin will break the maven build if the project fails the quality gate. These checks should happen after analysis has been submitted to the server.

Recommend using [https://github.com/adnovum/sonar-build-breaker], easier to integrate with sonarqube.

Origin

Fork of https://github.com/slam-it/sonar-quality-gates-maven-plugin, added support for sonarqube 7.9.x, migrated package to com.hack23.maven released to maven central.

Badges

license Maven Central Jenkins Jenkins tests Coverage Lines of Code Technical Debt Quality Gate Black Duck Security Risk FOSSA Status

Runtime

[JDK-8] [JDK-11 or higher] [JDK-12] [JDK-13]

Usage

$ mvn sonar-quality-gates:inspect

Configuration

  • sonarHostUrl
  • The Sonar host url
  • Default: http://localhost:9000

Note: sonarHostUrl property is optional and will be inferred from the sonar.host.url property (in the pom.xml or as a property in a [settings.xml profile](#Example Sonar profile (settings.xml)) if not specified

Example

<build>
  <plugins>
    <plugin>
      <groupId>com.hack23.maven</groupId>
      <artifactId>sonar-quality-gates-maven-plugin</artifactId>
      <version>1.0-SNAPSHOT</version>
      <!-- Optional configuration -->
      <configuration>
        <sonarHostUrl>SONAR-HOST-URL</sonarHostUrl>
        <sonarLogin>(username ore token)</sonarLogin>
        <sonarPassword>(password if username used, not when using token)</sonarPassword>
      </configuration>
    </plugin>
  </plugins>
</build>

Example Sonar profile (settings.xml)

<profile>
  <id>sonar</id>
  <properties>
    <sonar.host.url>http://localhost:9000</sonar.host.url>
    <sonar.login>(username ore token)</sonar.login>
    <sonar.password>(password if username used, not when using token)</sonar.password>
  </properties>
</profile>

<activeProfiles>
  <activeProfile>sonar</activeProfile>
</activeProfiles>
com.hack23.maven

www.hack23.com

Development of Secure Open Source Software Applications and Tools.

Версии библиотеки

Версия
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0