For instance I have a Maven project called blabla, and I want to control it by CLI like mvn (Maven) or gradle.(Examples, $ mvn clean install, $ gradle init
etc).
And instead of launching
$ java BlaBla start
or
$ java BlaBla stop
etc
I want to do like this:
$ blabla start
$ blabla status
$ blabla stop
etc.
Is there any ready solution for maven projects?
You can take a look at the appassembler-maven-plugin which can create a script based on the name and supports creating a shell and a bat variant...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With