When using maven, you can run the main method of an arbitrary class using maven exec plugin and mvn exec:java -Dexec.mainClass="com.example.Main"
. Is there a way to do this in sbt?
The specific use case is that I have a project which is typically a long running service, but I would also like to have some quick command line utilities in the same project which I can start from sbt.
sbt "run-main full.class.name"