Skip to content

Latest commit

 

History

History
28 lines (14 loc) · 913 Bytes

File metadata and controls

28 lines (14 loc) · 913 Bytes

Vert.x Simple Maven Verticle for Compiled Groovy project

This project is very similar to the maven-verticle-groovy project but it compiles the Goovy verticle.

The pom.xml compiles the groovy classes form src/main/groovy and package the verticle.

The pom.xml uses the Maven shade plugin to assemble the application and all it’s dependencies into a single "fat" jar.

To build a "fat jar"

mvn package

To run the fat jar:

java -jar target/maven-verticle-compiled-groovy-3.9.0-fat.jar

(You can take that jar and run it anywhere there is a Java 8+ JDK. It contains all the dependencies it needs so you don’t need to install Vert.x on the target machine).

Now point your browser at http://localhost:8080

You can also launch the application from Maven directly:

  • to run it using the classes form target/classes: mvn compile exec:java@run

  • to run the fat jar: mvn package exec:exec@run-app