generated from sentrysoftware/oss-maven-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/maven/org.apache.maven.plugins-ma…
…ven-jxr-plugin-3.3.2
- Loading branch information
Showing
139 changed files
with
16,733 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
overrides: | ||
- files: | ||
- "**/*.java" | ||
options: | ||
trailingComma: none | ||
useTabs: true | ||
tabWidth: 2 | ||
semi: false | ||
singleQuote: false | ||
printWidth: 120 | ||
arrowParens: avoid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,67 @@ | ||
# oss-maven-template | ||
|
||
![GitHub release (with filter)](https://img.shields.io/github/v/release/sentrysoftware/oss-maven-template) | ||
![Build](https://img.shields.io/github/actions/workflow/status/sentrysoftware/oss-maven-template/deploy.yml) | ||
![GitHub top language](https://img.shields.io/github/languages/top/sentrysoftware/oss-maven-template) | ||
![License](https://img.shields.io/github/license/sentrysoftware/oss-maven-template) | ||
|
||
Repository template for all Sentry open-source Java projects, published on Maven Central. | ||
|
||
## Build instructions | ||
|
||
This is a simple Maven project. Build with: | ||
|
||
```bash | ||
mvn verify | ||
``` | ||
|
||
## Release instructions | ||
|
||
The artifact is deployed to Sonatype's [Maven Central](https://central.sonatype.com/). | ||
|
||
The actual repository URL is https://s01.oss.sonatype.org/, with server Id `ossrh` and requires credentials to deploy | ||
artifacts manually. | ||
|
||
But it is strongly recommended to only use [GitHub Actions "Release to Maven Central"](actions/workflows/release.yml) to perform a release: | ||
|
||
* Manually trigger the "Release" workflow | ||
* Specify the version being released and the next version number (SNAPSHOT) | ||
* Release the corresponding staging repository on [Sonatype's Nexus server](https://s01.oss.sonatype.org/) | ||
* Merge the PR that has been created to prepare the next version | ||
|
||
## License | ||
|
||
License is Apache-2. Each source file must include the Apache-2 header (build will fail otherwise). | ||
To update source files with the proper header, simply execute the below command: | ||
|
||
```bash | ||
mvn license:update-file-header | ||
``` | ||
# MetricsHub Connector Maven Plugin | ||
|
||
This is a Maven Report plugin, which is invoked by Maven's site plugin in the `site` lifecycle. | ||
|
||
This plugin is designed to be used with the [MetricsHub Community Connectors](https://github.com/sentrysoftware/metricshub-community-connectors). | ||
|
||
It reads the connector files from a source directory (E.g. `./src/main/connector`), parses the `.yaml` files and produces the corresponding Reference Guide, as a set of HTML documents (through Doxia's Sink API), which is integrated into the project's documentation. | ||
|
||
See **[Project Documentation](https://sentrysoftware.github.io/metricshub-connector-maven-plugin)** for more information on how to use this plugin in your maven project. | ||
|
||
## Build instructions | ||
|
||
This is a simple Maven Plugin project. Build with: | ||
|
||
```bash | ||
mvn verify | ||
``` | ||
|
||
## Integration Tests | ||
|
||
While modifying the *MetricsHub Connector Maven Plugin*, you will want to see how your changes are reflected in a *test* documentation project. | ||
|
||
Conveniently, the project comes with integration tests, i.e. a documentation project that is automatically built with the skin as it is in the workspace. | ||
The integration test is run with the below command: | ||
|
||
```bash | ||
mvn verify | ||
``` | ||
|
||
This command builds the skin and run it against a documentation project. The result can be seen in `./metricshub-connector-maven-plugin/target/it/metricshub-connectors/site/*.html`. | ||
|
||
We recommend running [http-server](https://github.com/http-party/http-server#readme) to browse the result. Install with: | ||
|
||
```bash | ||
npm install --global http-server | ||
``` | ||
|
||
Launch a Web server with the generated test documentation with: | ||
|
||
```bash | ||
http-server metricshub-connector-maven-plugin/target/it/metricshub-connectors/target/site | ||
``` | ||
|
||
In case of a build failure, the output of the build is stored in `./metricshub-connector-maven-plugin/target/it/metricshub-connectors/build.log`. | ||
|
||
## Release instructions | ||
|
||
The artifact is deployed to Sonatype's [Maven Central](https://central.sonatype.com/). | ||
|
||
The actual repository URL is https://s01.oss.sonatype.org/, with server Id `ossrh` and requires credentials to deploy | ||
artifacts manually. | ||
|
||
But it is strongly recommended to only use [GitHub Actions "Release to Maven Central"](actions/workflows/release.yml) to perform a release: | ||
|
||
* Manually trigger the "Release" workflow | ||
* Specify the version being released and the next version number (SNAPSHOT) | ||
* Release the corresponding staging repository on [Sonatype's Nexus server](https://s01.oss.sonatype.org/) | ||
* Merge the PR that has been created to prepare the next version | ||
|
||
## License | ||
|
||
License is Apache-2. Each source file must include the Apache-2 header (build will fail otherwise). | ||
To update source files with the proper header, simply execute the below command: | ||
|
||
```bash | ||
mvn license:update-file-header | ||
``` |
Oops, something went wrong.