This guide helps developers make the construction of libraries and server/middleware.
Prerequisites
- Git
- Java 1.8
OpenDevice requires Java 1.8. To check that you have the latest JDK, please run:
java -version
If you don’t have the JDK, you have to install it from Oracle’s JDK Site.
- Maven 3 (Optional but recommended)
To check, please run:
mvn -version
If you don’t have, check the installation guides ( Ubuntu / Windows)
Get Sources
Compile and install Libs
OpenDevice is a series of libraries available in Maven Repository, so you can use Maven to build the project.
Go to the source folder and run:
mvn install
This command may take a while the first time, it will download all dependencies of the maven/project
After finishing, the latest versions of libraries will be installed on the local maven repository and may be used by other projects
Build Middleware/Server
Optionally you can build the server / middleware, used to integrate between applications, devices and data analysis
Go to the source folder (OpenDevice/opendevice-middleware) and run:
chmod +x server.sh
./server.sh compile
This will generate the file: /opendevice-middleware/target/opendevice-middleware-distribuition.zip
Now you can start server, see this guide.
0 Comments