SonarSource :: Update Center :: Maven Plugin

SonarSource Update Center

License

License

GroupId

GroupId

org.codehaus.sonar
ArtifactId

ArtifactId

sonar-update-center-mojo
Last Version

Last Version

1.13
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

SonarSource :: Update Center :: Maven Plugin
SonarSource Update Center
Project Organization

Project Organization

SonarSource

Download sonar-update-center-mojo

How to add to project

<plugin>
    <groupId>org.codehaus.sonar</groupId>
    <artifactId>sonar-update-center-mojo</artifactId>
    <version>1.13</version>
</plugin>

Dependencies

compile (8)

Group / Artifact Type Version
org.codehaus.sonar : sonar-update-center-common jar 1.13
commons-io : commons-io jar 2.4
commons-lang : commons-lang jar 2.6
com.google.guava : guava jar 10.0.1
org.apache.maven : maven-plugin-api jar 2.0.9
org.freemarker : freemarker jar 2.3.20
com.github.kevinsawicki : http-request jar 5.1
org.easytesting : fest-assert jar 1.4

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.mockito : mockito-all jar 1.9.5

Project Modules

There are no modules declared in this project.

Sonar Update Center Build Status Quality Gate Status

Use as a library

<dependency>
    <groupId>org.sonarsource.update-center</groupId>
    <artifactId>sonar-update-center</artifactId>
    <version>(latest)</version>
</dependency>

Use as a mojo

Setup

First, build and install locally.

mvn clean install -DskipTests

You will need the update center properties, which you can find here (adapt the -DinputFile parameter below accordingly).

To generate metadata files

mvn org.sonarsource.update-center:sonar-update-center-mojo:LATEST:generate-metadata \
    -DinputFile=../sonar-update-center-properties/update-center-source.properties \
    -DoutputDir=output

# Currently, this requires 2 "deprecated" parameters to run. See https://jira.sonarsource.com/browse/UPC-106
mvn org.sonarsource.update-center:sonar-update-center-mojo:LATEST:generate-metadata \
    -DinputFile=../sonar-update-center-properties/update-center-source.properties \
    -DoutputDir=output \
    -DeditionsDownloadBaseUrl=https://binaries.sonarsource.com/CommercialDistribution/editions/ \
    -DeditionsOutputDir=output-editions

To generate html

This will generate html snippets for every plugins plus the compatability matrix

mvn org.sonarsource.update-center:sonar-update-center-mojo:LATEST:generate-html \
    -DinputFile=../sonar-update-center-properties/update-center-source.properties \
    -DoutputDir=output

To generate json files

mvn org.sonarsource.update-center:sonar-update-center-mojo:LATEST:generate-json \
    -DinputFile=../sonar-update-center-properties/update-center-source.properties \
    -DoutputDir=output

License

Copyright 2010-2017 SonarSource.

Licensed under the GNU Lesser General Public License, Version 3.0

org.codehaus.sonar

SonarSource

Continuous Code Quality

Versions

Version
1.13
1.12.1
1.12
1.11
1.10.1
1.10
1.10-RC1
1.9
1.8
1.7
1.6.1
1.6
1.5
1.5-RC1
1.4