Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harshzalavadiya/maven-toolbox
Power packed utilities for maven continuous integration ⚡
https://github.com/harshzalavadiya/maven-toolbox
artifactory ci-cd maven openapi-sdk properties-updator swagger-sdk
Last synced: 28 days ago
JSON representation
Power packed utilities for maven continuous integration ⚡
- Host: GitHub
- URL: https://github.com/harshzalavadiya/maven-toolbox
- Owner: harshzalavadiya
- License: mit
- Created: 2019-09-11T11:06:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-05T06:19:48.000Z (over 2 years ago)
- Last Synced: 2024-06-21T16:57:22.827Z (6 months ago)
- Topics: artifactory, ci-cd, maven, openapi-sdk, properties-updator, swagger-sdk
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Maven Toolbox 🧰
Power packed utilities for maven ⚡
## Features
- Built for CI-CD 💫
- No Dependency 😇
- Cross Platform 🐿️## How to use
- Download platform specific binary release from [here](https://github.com/harshzalavadiya/maven-toolbox/releases) or quick install `curl -L http://bit.ly/maven-toolbox | bash`
- Copy executable to root directory
- Setup environment variables (for example `export MTPROP_FOO=bar`)
- Run executable with specific arguements from below## Actions
#### `configure-m2`
Update `~/.m2/settings.xml` with artifactory credintials
```sh
export ARTIFACTORY_ENDPOINT=admin
export ARTIFACTORY_USERNAME=password
export ARTIFACTORY_URL=http://localhost:8081/artifactory
./maven-toolbox configure-m2
```#### `configure-sdk`
Update dynamically generated swagger/openapi SDK project for artificatory publishing
```sh
export ARTIFACTORY_URL=http://localhost:8081/artifactory
./maven-toolbox configure-sdk
```#### `configure-hibernate`
find and update database configuration `hibernate.cfg.xml`
```sh
export DB_USERNAME="postgres"
export DB_PASSWORD="postgres123"
export DB_URL="jdbc:postgresql://localhost:5432/db"
./maven-toolbox configure-hibernate
```#### `configure-properties`
Update properties file
```sh
export MTPROP_FOO="xyz" # `MTPROP_` is a default prefix
./maven-toolbox configure-properties path/to/your.properties
```Example
![demo](https://media.giphy.com/media/VCPVjSPn5FVVLqHmC7/giphy.gif)
## Building
```sh
go build -ldflags "-s -w"
```