https://github.com/sonarsource/sonar-update-center
https://github.com/sonarsource/sonar-update-center
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sonarsource/sonar-update-center
- Owner: SonarSource
- License: lgpl-3.0
- Created: 2012-12-05T10:24:08.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2025-05-19T09:28:03.000Z (8 months ago)
- Last Synced: 2025-06-08T11:51:22.829Z (7 months ago)
- Language: Java
- Homepage:
- Size: 2.27 MB
- Stars: 8
- Watchers: 27
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Sonar Update Center [](https://cirrus-ci.com/github/SonarSource/sonar-update-center) [](https://next.sonarqube.com/sonarqube/dashboard?id=org.sonarsource.update-center%3Asonar-update-center)
## Use as a library
```
org.sonarsource.update-center
sonar-update-center
(latest)
```
## Use as a mojo
### Setup
First, build and install locally.
```bash
mvn clean install -DskipTests
```
You will need the update center properties, which you can find [here](https://github.com/SonarSource/sonar-update-center-properties/) (adapt the `-DinputFile` parameter below accordingly).
### To generate metadata files
```bash
mvn org.sonarsource.update-center:sonar-update-center-mojo:LATEST:generate-metadata \
-DinputFile=../sonar-update-center-properties/update-center-source.properties \
-DoutputDir=output
```
### To generate html
This will generate html snippets for every plugins plus the compatability matrix
```bash
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
```bash
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-2024 SonarSource.
Licensed under the [GNU Lesser General Public License, Version 3.0](http://www.gnu.org/licenses/lgpl.txt)