This is a helper dev package to work with Eclipse Vert.x JS/TS projects.
Init will bootstrap a
pom.xml file from the
package.json. The maven
pom file can be customized by supplying a handlebars template named
By default both
artifactId will map to the package json
name property, the version will map to the
version property and the
main verticle will map to the
All entries in
files will be added to the final
fatJar with the caveat
that directories must be sufixed with
/ so maven can understand
how to handle it.
In order to use this script in your project you should add the following to
You can add normal dependencies as normal too.
This script will delegate to vert.x launcher, it will invoke the command you want to run and pass all arguments to it.
There are a couple of helper.
-dwill start the JVM in debug mode listening on port 9797
-twill use the
testclasspath instead of the
When no arguments are passed the main verticle is derived from the
main property. When the test classpath is enabled then
this value is suffixed by
An example running tests would be after adding
vertx-unit to the
This script will package your application as a fatJar so you can easily deploy it and distribute.
Once you have your code packaged you can run it as a runnable jar or even
run it using the
shell. Be aware that the
shell not not
jjs -cp target/yourapp-1.0.0-fat.jar
or from the script.
REPL starts you can load vert.x and your code e.g.:
// this will initialize all the Vert.x Runtime Objects;// run your verticle:;