A maven-integrated IDE such as Eclipse or IntelliJ can easily be used to build the samples and the application template project.
If your IDE lacks a maven integration see
samples/get-edgent-jars-project for a tool to create a bundle containing the Edgent runtime jars. You can unpack the bundle and adjust the projects in your IDE to use them.
The Edgent Git repository and samples source release bundle contains Maven project definitions for the samples.
Once you import the Maven projects into your workspace, builds in Eclipse use the same artifacts as the Maven command line tooling. Like the command line tooling, the jars for dependent projects are automatically downloaded to the local maven repository and used.
Note: Specifics may change depending on your version of Eclipse or the Eclipse Maven or Git Team Provider.
samplesdirectory in the clone or source release directory and select it. A hierarchy of samples projects / pom.xml files will be listed and all selected.
Top-level artifacts such as
README.md are available under the
Once the samples projects have been imported you can run them from Eclipse in the usual manner. E.g.,
HelloEdgentand click OK
HelloEdgentclass name and from the context menu
HelloEdgentruns and prints to the Console view.
See template/README.md for general information.
To clone the template project for your application project:
my-app. This can be renamed later.
Verify you can run the imported template app:
TemplateAppand click OK
TemplateAppclass name and from the context menu
TemplateAppruns and prints to the Console view.
You can then start adding your application‘s java code and adjusting the template’s pom for your application's dependencies.