You can use any of the following methods to download the Pi4J library.
You can download the compiled Pi4J library JARs directly here:
LATEST SNAPSHOT BUILDS
Pi4J release builds will be deployed to Maven Central when each final version build is released.
The following dependency is all that is required to include Pi4J (core library) in your Maven project.
<dependency> <groupId>com.pi4j</groupId> <artifactId>pi4j-core</artifactId> <version>1.1</version> </dependency>
Snapshots will be hosted in the following Sonatype OSS repository.
To download SNAPSHOT builds in your Maven project, you must include the following repository definition in your POM.XML file.
<repositories> <repository> <id>oss-snapshots-repo</id> <name>Sonatype OSS Maven Repository</name> <url>https://oss.sonatype.org/content/groups/public</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories>
The following dependency is all that is needed to include Pi4J (core library) in your Maven project.
<dependency> <groupId>com.pi4j</groupId> <artifactId>pi4j-core</artifactId> <version>1.2-SNAPSHOT</version> </dependency>
This project is provided as open source software and is hosted at GitHub: