vert-x3 / vertx-guide-for-java-devs

Vert.x 3 guide for Java developers
Apache License 2.0
549 stars 185 forks source link

main verticle property in redeploy.sh is hardcoded #10

Open GordonTrang opened 7 years ago

GordonTrang commented 7 years ago

Instead of redeploy.sh using hard-coded value, it should pick it up from pom.xml

jponge commented 7 years ago

Since redeploy.sh isn't generated, how would you do that?

rgmz commented 6 years ago

Using the Vert.x Maven Plugin you can define the main verticle in pom.xml as such:

<properties>
    <vertx.verticle>io.vertx.guides.wiki.MainVerticle</vertx.verticle>
</properties>

and then run it (with or without hot redeploy) using mvn vertx:run.