Sonar Update Center
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