An Edgent Application template project.
Clone this template project folder to create your Edgent application project.
The project's pom supports
Edit the pom for your application. Adjust it for your application's maven coordinates. The pom has potential Edgent dependenacies present and commented out. Include the Edgent Providers, Analytics, Utils, and Connectors used by your application.
Read ../README.md
for general information about Edgent Application development.
The template includes a maven wrapper script to eliminate the need to manually download and install maven.
./mvnw clean package # add -Pplatform-java7 or -Pplatform-android as needed
You can copy app-run.sh
and the generated target/*-uber.jar
to the edge device and then run it
./app-run.sh
Adjust the main class name and application jar path below for your application.
PLATFORM= # add "--platform java7" or "--platform android" as appropriate ../package-app.sh $PLATFORM --mainClass com.mycompany.app.TemplateApp --appjar target/my-app-1.0-SNAPSHOT.jar
If you don‘t want to use the generated uber jar or package-app.sh
approaches, you can copy the application’s standard jar and a get-edgent-jars-project
generated jar bundle to the edge device. See samples/get-edgent-jars-project
.