This project is a template to start your own Vert.x project using Apache Maven.
Create your project with:
git clone https://github.com/vert-x3/vertx-maven-starter.git PROJECT_NAME
Replace PROJECT_NAME
with the name of your project.
On Linux and MacOSx (or Windows with bash
), if you want to go faster and generate an already configured project run:
curl http://vertx.io/assets/starter-scripts/create-vertx-project-maven.sh -o vertx-create-maven-project.sh; bash vertx-create-maven-project.sh
Once you have retrieved the project, you can check that everything works with:
mvn test exec:java
The command compiles the project and runs the tests, then it launches the application, so you can check by yourself. Open your browser to http://localhost:8080. You should see a Hello World message.
The project contains:
a pom.xml
file
a main verticle file (src/main/java/io/vertx/starter/MainVerticle.java)
an unit test (src/main/test/io/vertx/starter/MainVerticleTest.java)
Delete the .git
directory
Open the pom.xml
file and customize the groupId
, artifactId
and version
. You can also change the main.verticle
property to use your own package name and verticle class.
Run redeploy.sh
(or redeploy.bat
on Windows) and the project recompiles while editing.
Note
|
the redeploy script are also configurable
|
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。