This project is a template to start your own Vert.x project using Apache Maven.
Create your project with:
git clone https://github.com/h3rucutu/caltic-vertx-starter.git `PROJECT_NAME`
Replace PROJECT_NAME
with the name of your project.
Once you have retrieved the project, enter into your project then you can check that everything works with:
./mvnw clean compile vertx:run
On Windows:
mvnw.cmd clean compile vertx:run
The command compiles the project and run it in redeploy mode. Open your browser to http://localhost:9000. You should see a Hello Caltic Vert.x!
message.
Redeploy mode helps developer to compile immediately when there’s a changes and deploy it automatically, usually called hot-reload
.
Besides run in redeploy mode, you also can package into one jar
file:
./mvnw clean compile vertx:package
On Windows:
mvnw.cmd clean compile vertx:package
And run it with java -jar
command:
java -jar target/*jar
The project contains:
-
a
pom.xml
file -
a main verticle file (
MainVerticle.java
) -
an unit test (
MainVerticleTest.java
)
-
Delete the
.git
directory: -
Open the
pom.xml
file and customize thegroupId
,artifactId
andversion
. You can also change themain.verticle
property to use your own package name and verticle class. -
After editing
pom.xml
file, change necessary directory undersrc/main/java
andsrc/test/java
following yourgroupId
. -
Save all your work and try to run.
This project is maintained using git-flow. Please refer git-flow
website for the instructions.
This project brought to you by caltic.id