/maven-toolbox

Power packed utilities for maven continuous integration ⚡

Primary LanguageGoMIT LicenseMIT

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 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

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

export ARTIFACTORY_URL=http://localhost:8081/artifactory
./maven-toolbox configure-sdk

configure-hibernate

find and update database configuration hibernate.cfg.xml

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

export MTPROP_FOO="xyz" # `MTPROP_` is a default prefix
./maven-toolbox configure-properties path/to/your.properties
Example

demo

Building

go build -ldflags "-s -w"