jakub holý

building the right thing, building it right, fast

Note to Self: Running GroovyConsole with a Maven Project''s Classpath


It's pretty useful to have the ability to eperiment interactively with some API using the (desktop) Groovy Console. If the API is in a Maven project, just add dependency on Groovy to your pom.xml:


And execute the console from the project's folder using the exec plugin:

mvn exec:java -Dexec.mainClass="groovy.ui.Console"