Basic Maven setup for a Groovy project that will be compiled into an executable uber-JAR.
Change the artifact details in pom.xml.
<groupId>com.example</groupId> <artifactId>groovy-maven-template</artifactId> <version>0.0.1-SNAPSHOT</version>
Change the main manifest under the
maven-jar-plugin configuration to the name of your main class.
./mvnw clean package
mvnw.cmd clean package
The generated uber-JAR will be located in the target directory, and can be run as normal with
java -jar GENERATED_JARFILE.jar.
The other Maven lifecycle events still apply (e.g.,
mvn test, etc.). Testing is performed by the
maven-surefire-plugin and packaging all dependencies is performed with