-
You will need the Java JDK 1.8+ installed, downloadable from the Java SDK Downloads page.
-
You will need Maven 3.+ installed. Linux users can use their package manager to install at the command line (example for apt package management
sudo apt-get install maven
), and similarly OSX users using brew canbrew install maven
. Windows users can install via Chocolatey (choco install maven
) or by downloading the installer at the Maven downloads page. -
You will want a running version of Ignition to test your module in. If you don't already have Ignition installed head to the Inductive Automation downloads page, download the correct package for your system and follow the installation instructions to get a gateway up and running.
-
Once you have configured your developer gateway, make sure git is installed and clone this repo to a directory of your choice :
git clone https://github.com/inductiveautomation/ignition-sdk-examples.git
-
Using your IDE of choice, you should be able to create or open any of these included Example Modules through the parent pom.xml file located in the root of each example. Upon importing this project into your IDE, it should download (if auto-import is on) Maven dependencies from the Inductive Automation artifact repository. Dependencies are managed through Maven and are cached to your local environment after they are downloaded.
-
Once all dependencies are cached, you should be able to run
mvn package
in any of the examples to generate the .modl file (which will be created in thebuild\target\
directory of the example). The modl file is the Ignition module file you install to the Dev Mode Ignition inConfig > Modules
in your browser's Gateway page (generally found athttp://localhost:8088/main
). -
You should now be able to see your module installed and running!
These examples utilize Maven and our Maven Plugin. The ignition-maven-plugin is available through our Nexus Repository (see examples for how to add to depenency sources).
The pom files in these examples should prove useful tools to understanding how the new SDK works while we update the documentation in preparation for the full release of this new SDK.