I want to be able to create a command line utility written in Scala using Maven. Ideally, I want to be able to write a main method and have some Maven goal that will install an executable with a certain name into a bin/ directory so it can just be used as a command.
My only experience with this is with Python’s ‘entry_points’ in setup.py which will create an executable shell script that’s configured to call a particular function.
Does Maven offer something like this?
You can use the
appassembler-maven-pluginto automatically create a bin script for you.Alternatively, write your own script and use the assembly plugin to specify how to assemble your program.