Start Groovy from Maven - gopinaath/pnt100 GitHub Wiki

Starting Groovy from maven:

<dependency>
	<groupId>org.codehaus.groovy</groupId>
	<artifactId>groovy-all</artifactId>
	<version>2.3.7</version>
</dependency>

<dependency>
	<groupId>org.fusesource.jansi</groupId>
	<artifactId>jansi</artifactId>
	<version>1.11</version>
    </dependency>
<dependency>
	<groupId>commons-cli</groupId>
	<artifactId>commons-cli</artifactId>
	<version>1.2</version>
</dependency>
<dependency>
	<groupId>jline</groupId>
	<artifactId>jline</artifactId>
	<version>2.11</version>
    </dependency>

Use the following maven command at the console to start the shell:

$ mvn exec:java -Dexec.mainClass="org.codehaus.groovy.tools.shell.Main"

Ideally the following should work, but it resulted in garbled groovy prompt. "←[1mgroovy:←[0m000←[1m>←[0m" instead of what would be expected(?).

$ mvn groovy:shell

Use the following maven command to start maven console UI:

$ mvn exec:java -Dexec.mainClass="groovy.ui.Console"
⚠️ **GitHub.com Fallback** ⚠️