Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amy-keibler/example_java_project
https://github.com/amy-keibler/example_java_project
Last synced: about 19 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/amy-keibler/example_java_project
- Owner: amy-keibler
- Created: 2023-07-17T20:55:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-30T19:46:37.000Z (6 months ago)
- Last Synced: 2024-05-30T22:37:44.697Z (6 months ago)
- Language: Java
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example Java Project
## Setup
In order to use this, you'll need to create a `settings.xml` file. You can copy
[`settings-example.xml`][settings] as a starting point and then fill in the
credentials with your user token information generated on the [Central
Portal][csc].The default server URL is `http://localhost:3000`, so if you want to publish to
staging, you'll need to pass
`-Dcentral.url=https://staging.portal.central.sonatype.dev` via the command-line.## Usage
```shell
mvn --settings settings.xml clean deploy -Prelease
```### Usage (Nix)
The `flake.nix` file provides `mvnLocal` and `mvnStaging` commands that expect a
`settings-local.xml` and `settings-staging.xml` file, respectively.## Projects
### Basic
Entrypoint: [`basic/pom.xml`](basic/pom.xml)
This project demonstrates the minimum viable publishing setup.
### Classless
Entrypoint: [`classless/pom.xml`](classless/pom.xml)
This project demonstrates the ability to publish JAR files without Java classes.
### Complex Structure
Entrypoint: [`complex_structure/pom.xml`](complex_structure/pom.xml)
This project creates a structure that demonstrates several patterns that we have
observed in deployments. It is meant to provide a quick smoke test for
publishing functionality.### Dependency
Entrypoint: [`dependency/README.md`](dependency/README.md)
This project demonstrates doing pre-publish verification of a deployment via the
Central Publisher Portal.[settings]: ./settings-example.xml
[csc]: https://central.sonatype.com