Chapter 2. Configuring your applications
This section explains how to configure your applications to work with Eclipse Vert.x runtime.
2.1. Configuring your application to use Eclipse Vert.x Copy linkLink copied to clipboard!
When you start configuring your applications to use Eclipse Vert.x, you must reference the Eclipse Vert.x BOM (Bill of Materials) artifact in the pom.xml file at the root directory of your application. The BOM is used to set the correct versions of the artifacts.
Prerequisites
- A Maven-based application
Procedure
Open the
pom.xmlfile, add theio.vertx:vertx-dependenciesartifact to the<dependencyManagement>section. Specify thetypeaspomandscopeasimport.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Include the following properties to track the version of Eclipse Vert.x and the Eclipse Vert.x Maven Plugin you are using.
Properties can be used to set values that change in every release. For example, versions of product or plugins.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Specify
vertx-maven-pluginas the plugin used to package your application:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Include
repositoriesandpluginRepositoriesto specify the repositories that contain the artifacts and plugins to build your application:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional resources
- For more information about packaging your Eclipse Vert.x application, see the Vert.x Maven Plugin documentation.