Download pi4j-core-1.2.jar file

Introduction

You can download pi4j-core-1.2.jar in this page.

License

Open Source

Type List

pi4j-core-1.2.jar file has the following types.

LICENSE.txt
META-INF/MANIFEST.MF
META-INF/maven/com.pi4j/pi4j-core/pom.properties
META-INF/maven/com.pi4j/pi4j-core/pom.xml
NOTICE.txt
README.md
com.pi4j.concurrent.DefaultExecutorServiceFactory.class
com.pi4j.concurrent.ExecutorServiceFactory.class
com.pi4j.concurrent.ScheduledExecutorServiceWrapper.class
com.pi4j.concurrent.ShutdownDisabledExecutorWrapper.class
com.pi4j.io.file.FileException.class
com.pi4j.io.file.LinuxFile.class
com.pi4j.io.gpio.BananaPiGpioProvider.class
com.pi4j.io.gpio.BananaPiPin.class
com.pi4j.io.gpio.BananaProGpioProvider.class
com.pi4j.io.gpio.BananaProPin.class
com.pi4j.io.gpio.BpiGpioProvider.class
com.pi4j.io.gpio.BpiPin.class
com.pi4j.io.gpio.GpioController.class
com.pi4j.io.gpio.GpioFactory.class
com.pi4j.io.gpio.GpioPin.class
com.pi4j.io.gpio.GpioPinAnalog.class
com.pi4j.io.gpio.GpioPinAnalogInput.class
com.pi4j.io.gpio.GpioPinAnalogOutput.class
com.pi4j.io.gpio.GpioPinDigital.class
com.pi4j.io.gpio.GpioPinDigitalInput.class
com.pi4j.io.gpio.GpioPinDigitalMultipurpose.class
com.pi4j.io.gpio.GpioPinDigitalOutput.class
com.pi4j.io.gpio.GpioPinInput.class
com.pi4j.io.gpio.GpioPinOutput.class
com.pi4j.io.gpio.GpioPinPwm.class
com.pi4j.io.gpio.GpioPinPwmOutput.class
com.pi4j.io.gpio.GpioPinShutdown.class
com.pi4j.io.gpio.GpioProvider.class
com.pi4j.io.gpio.GpioProviderBase.class
com.pi4j.io.gpio.GpioProviderPinCache.class
com.pi4j.io.gpio.NanoPiGpioProvider.class
com.pi4j.io.gpio.NanoPiPin.class
com.pi4j.io.gpio.OdroidC1Pin.class
com.pi4j.io.gpio.OdroidGpioProvider.class
com.pi4j.io.gpio.OdroidXU4Pin.class
com.pi4j.io.gpio.OrangePiGpioProvider.class
com.pi4j.io.gpio.OrangePiPin.class
com.pi4j.io.gpio.PiFacePin.class
com.pi4j.io.gpio.Pin.class
com.pi4j.io.gpio.PinDirection.class
com.pi4j.io.gpio.PinEdge.class
com.pi4j.io.gpio.PinMode.class
com.pi4j.io.gpio.PinProvider.class
com.pi4j.io.gpio.PinPullResistance.class
com.pi4j.io.gpio.PinState.class
com.pi4j.io.gpio.RCMPin.class
com.pi4j.io.gpio.RaspiBcmPin.class
com.pi4j.io.gpio.RaspiGpioProvider.class
com.pi4j.io.gpio.RaspiPin.class
com.pi4j.io.gpio.RaspiPinNumberingScheme.class
com.pi4j.io.gpio.SimulatedGpioProvider.class
com.pi4j.io.gpio.WiringPiGpioProviderBase.class
com.pi4j.io.gpio.event.GpioPinAnalogValueChangeEvent.class
com.pi4j.io.gpio.event.GpioPinDigitalStateChangeEvent.class
com.pi4j.io.gpio.event.GpioPinEvent.class
com.pi4j.io.gpio.event.GpioPinListener.class
com.pi4j.io.gpio.event.GpioPinListenerAnalog.class
com.pi4j.io.gpio.event.GpioPinListenerDigital.class
com.pi4j.io.gpio.event.IFTTTMakerChannelTriggerEvent.class
com.pi4j.io.gpio.event.IFTTTMakerChannelTriggerListener.class
com.pi4j.io.gpio.event.PinAnalogValueChangeEvent.class
com.pi4j.io.gpio.event.PinDigitalStateChangeEvent.class
com.pi4j.io.gpio.event.PinEvent.class
com.pi4j.io.gpio.event.PinEventType.class
com.pi4j.io.gpio.event.PinListener.class
com.pi4j.io.gpio.exception.GpioPinExistsException.class
com.pi4j.io.gpio.exception.GpioPinNotProvisionedException.class
com.pi4j.io.gpio.exception.InvalidPinException.class
com.pi4j.io.gpio.exception.InvalidPinModeException.class
com.pi4j.io.gpio.exception.PinProviderException.class
com.pi4j.io.gpio.exception.UnsupportedBoardType.class
com.pi4j.io.gpio.exception.UnsupportedPinEventsException.class
com.pi4j.io.gpio.exception.UnsupportedPinModeException.class
com.pi4j.io.gpio.exception.UnsupportedPinPullResistanceException.class
com.pi4j.io.gpio.exception.ValidationException.class
com.pi4j.io.gpio.impl.GpioControllerImpl.class
com.pi4j.io.gpio.impl.GpioEventMonitorExecutorImpl.class
com.pi4j.io.gpio.impl.GpioEventMonitorImpl.class
com.pi4j.io.gpio.impl.GpioPinImpl.class
com.pi4j.io.gpio.impl.GpioPinShutdownImpl.class
com.pi4j.io.gpio.impl.GpioScheduledExecutorImpl.class
com.pi4j.io.gpio.impl.PinImpl.class
com.pi4j.io.gpio.tasks.impl.GpioBlinkStopTaskImpl.class
com.pi4j.io.gpio.tasks.impl.GpioBlinkTaskImpl.class
com.pi4j.io.gpio.tasks.impl.GpioEventDebounceTaskImpl.class
com.pi4j.io.gpio.tasks.impl.GpioEventDispatchTaskImpl.class
com.pi4j.io.gpio.tasks.impl.GpioPulseTaskImpl.class
com.pi4j.io.gpio.trigger.GpioBlinkStateTrigger.class
com.pi4j.io.gpio.trigger.GpioBlinkStopStateTrigger.class
com.pi4j.io.gpio.trigger.GpioCallbackTrigger.class
com.pi4j.io.gpio.trigger.GpioInverseSyncStateTrigger.class
com.pi4j.io.gpio.trigger.GpioPulseStateTrigger.class
com.pi4j.io.gpio.trigger.GpioSetStateTrigger.class
com.pi4j.io.gpio.trigger.GpioSyncStateTrigger.class
com.pi4j.io.gpio.trigger.GpioToggleStateTrigger.class
com.pi4j.io.gpio.trigger.GpioTrigger.class
com.pi4j.io.gpio.trigger.GpioTriggerBase.class
com.pi4j.io.gpio.trigger.IFTTTMakerChannelTrigger.class
com.pi4j.io.gpio.trigger.OutputTargetedGpioTrigger.class
com.pi4j.io.i2c.I2CBus.class
com.pi4j.io.i2c.I2CConstants.class
com.pi4j.io.i2c.I2CDevice.class
com.pi4j.io.i2c.I2CFactory.class
com.pi4j.io.i2c.I2CFactoryProvider.class
com.pi4j.io.i2c.impl.I2CBusImpl.class
com.pi4j.io.i2c.impl.I2CDeviceImpl.class
com.pi4j.io.i2c.impl.I2CProviderImpl.class
com.pi4j.io.serial.BananaPiSerial.class
com.pi4j.io.serial.BananaProSerial.class
com.pi4j.io.serial.Baud.class
com.pi4j.io.serial.DataBits.class
com.pi4j.io.serial.FlowControl.class
com.pi4j.io.serial.OdroidSerial.class
com.pi4j.io.serial.OrangePiSerial.class
com.pi4j.io.serial.Parity.class
com.pi4j.io.serial.RaspberryPiSerial.class
com.pi4j.io.serial.Serial.class
com.pi4j.io.serial.SerialConfig.class
com.pi4j.io.serial.SerialDataEvent.class
com.pi4j.io.serial.SerialDataEventListener.class
com.pi4j.io.serial.SerialDataReader.class
com.pi4j.io.serial.SerialDataWriter.class
com.pi4j.io.serial.SerialFactory.class
com.pi4j.io.serial.SerialPort.class
com.pi4j.io.serial.SerialPortException.class
com.pi4j.io.serial.StopBits.class
com.pi4j.io.serial.impl.AbstractSerialDataReader.class
com.pi4j.io.serial.impl.AbstractSerialDataReaderWriter.class
com.pi4j.io.serial.impl.AbstractSerialDataWriter.class
com.pi4j.io.serial.impl.SerialByteBuffer.class
com.pi4j.io.serial.impl.SerialImpl.class
com.pi4j.io.serial.tasks.SerialDataEventDispatchTaskImpl.class
com.pi4j.io.spi.SpiChannel.class
com.pi4j.io.spi.SpiDevice.class
com.pi4j.io.spi.SpiFactory.class
com.pi4j.io.spi.SpiMode.class
com.pi4j.io.spi.impl.SpiDeviceImpl.class
com.pi4j.io.w1.W1BaseDevice.class
com.pi4j.io.w1.W1Device.class
com.pi4j.io.w1.W1DeviceType.class
com.pi4j.io.w1.W1Master.class
com.pi4j.io.w1.W1MasterWatcher.class
com.pi4j.io.wdt.WDTimer.class
com.pi4j.io.wdt.impl.WDTimerImpl.class
com.pi4j.jni.AnalogInputEvent.class
com.pi4j.jni.AnalogInputListener.class
com.pi4j.jni.AnalogInputMonitor.class
com.pi4j.jni.Serial.class
com.pi4j.jni.SerialInterrupt.class
com.pi4j.jni.SerialInterruptEvent.class
com.pi4j.jni.SerialInterruptListener.class
com.pi4j.jni.WDT.class
com.pi4j.platform.Platform.class
com.pi4j.platform.PlatformAlreadyAssignedException.class
com.pi4j.platform.PlatformManager.class
com.pi4j.system.NetworkInfo.class
com.pi4j.system.NetworkInterface.class
com.pi4j.system.SystemInfo.class
com.pi4j.system.SystemInfoFactory.class
com.pi4j.system.SystemInfoProvider.class
com.pi4j.system.impl.BananaPiSystemInfoProvider.class
com.pi4j.system.impl.BananaProSystemInfoProvider.class
com.pi4j.system.impl.BpiSystemInfoProvider.class
com.pi4j.system.impl.DefaultSystemInfoProvider.class
com.pi4j.system.impl.NanoPiSystemInfoProvider.class
com.pi4j.system.impl.OdroidSystemInfoProvider.class
com.pi4j.system.impl.OrangePiSystemInfoProvider.class
com.pi4j.system.impl.RaspiSystemInfoProvider.class
com.pi4j.system.impl.SystemInfoProviderBase.class
com.pi4j.temperature.TemperatureConversion.class
com.pi4j.temperature.TemperatureScale.class
com.pi4j.util.CommandArgumentParser.class
com.pi4j.util.Console.class
com.pi4j.util.ConsoleColor.class
com.pi4j.util.ExecUtil.class
com.pi4j.util.NativeLibraryLoader.class
com.pi4j.util.StringUtil.class
com.pi4j.wiringpi.Gertboard.class
com.pi4j.wiringpi.Gpio.class
com.pi4j.wiringpi.GpioInterrupt.class
com.pi4j.wiringpi.GpioInterruptCallback.class
com.pi4j.wiringpi.GpioInterruptEvent.class
com.pi4j.wiringpi.GpioInterruptListener.class
com.pi4j.wiringpi.GpioUtil.class
com.pi4j.wiringpi.I2C.class
com.pi4j.wiringpi.Lcd.class
com.pi4j.wiringpi.Nes.class
com.pi4j.wiringpi.Serial.class
com.pi4j.wiringpi.Shift.class
com.pi4j.wiringpi.SoftPwm.class
com.pi4j.wiringpi.SoftTone.class
com.pi4j.wiringpi.Spi.class
lib/bananapi/dynamic/libpi4j.so
lib/bananapi/static/libpi4j.so
lib/bananapro/dynamic/libpi4j.so
lib/bananapro/static/libpi4j.so
lib/bpi/dynamic/libpi4j.so
lib/bpi/static/libpi4j.so
lib/nanopi/dynamic/libpi4j.so
lib/nanopi/static/libpi4j.so
lib/odroid/dynamic/libpi4j.so
lib/odroid/static/libpi4j.so
lib/orangepi/dynamic/libpi4j.so
lib/orangepi/static/libpi4j.so
lib/raspberrypi/dynamic/libpi4j.so

Pom

pi4j-core-1.2.pom file content.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<!-- MAVEN ARTIFACT INFORMATION -->
	<artifactId>pi4j-core</artifactId>
	<name>Pi4J :: Java Library (Core)</name>
	<description>Pi4J Java Library for the Raspberry Pi</description>
	<packaging>jar</packaging>
	<parent>
		<groupId>com.pi4j</groupId>
		<artifactId>pi4j-parent</artifactId>
        <version>1.2</version>
	</parent>

	<!-- PROJECT DEPENDENCIES -->
	<dependencies>

        <!-- while the pi4j-native dependency is not needed for compiling this
             project, including it here ensures that it gets compiled in the maven
             build lifecycle before the pi4j-core project.    -->
        <dependency>
			<groupId>com.pi4j</groupId>
			<artifactId>pi4j-native</artifactId>
			<classifier>raspberrypi-dynamic</classifier>
			<version>${project.version}</version>
			<type>so</type>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
		</dependency>
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-module-junit4</artifactId>
		</dependency>
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-api-mockito</artifactId>
		</dependency>

	</dependencies>

	<!-- BUILD INSTRUCTIONS -->
	<build>
		<resources>
			<resource>
				<directory>${project.build.directory}</directory>
				<filtering>false</filtering>
				<includes>
					<include>LICENSE.txt</include>
					<include>NOTICE.txt</include>
					<include>README.md</include>
				</includes>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>false</filtering>
			</resource>
		</resources>

		<plugins>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
                <version>${maven-surefire-plugin.version}</version>
				<configuration>
					<argLine>-noverify</argLine> <!-- needed for running PowerMock for com.pi4j.jni.I2C -->
                    <excludes>
                        <!-- TEMPORARILY EXCLUDED TEST; TEST FAILS ON OSX -->
                        <exclude>
                            **/I2CBusImplTest.java
                        </exclude>
                    </excludes>
				</configuration>
			</plugin>

			<!-- JAVA COMPILER -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
			</plugin>

			<!-- INCLUDE SOURCE JAR -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
			</plugin>

			<!-- INCLUDE JAVADOC JAR -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
			</plugin>

			<!-- GENERATE LICENSE HEADERS IN SOURCE FILES -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>license-maven-plugin</artifactId>
			</plugin>

			<!-- RETRIEVE THE JNI NATIVE LIBRARY DEPENDENCY -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>copy</id>
						<phase>validate</phase>
						<goals>
							<goal>copy</goal>
						</goals>
						<configuration>
							<artifactItems>
								<!-- we define the libpi4j native project as a dependency so that
									native library can be included in the final packaged pi4j.jar -->

                                <!-- LIBPI4J for the Raspberry-Pi platform -->
                                <!-- NOTE: As of 2018-04-23 in Pi4J 1.2 SNAPSHOT builds, Pi4J no longer includes
                                           a statically linked wiringPi lib for the Raspberry Pi platform. -->
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>raspberrypi-dynamic</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/raspberrypi/dynamic</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>

                                <!-- LIBPI4J for the Banana-Pi platform -->
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>bananapi-static</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/bananapi/static</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>bananapi-dynamic</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/bananapi/dynamic</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>

                                <!-- LIBPI4J for the Banana-Pro platform -->
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>bananapro-static</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/bananapro/static</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>bananapro-dynamic</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/bananapro/dynamic</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>

                                <!-- LIBPI4J for the Sinovoip BPI (BananaPi) platform -->
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>bpi-static</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/bpi/static</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>bpi-dynamic</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/bpi/dynamic</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>

                                <!-- LIBPI4J for the Odroid platform -->
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>odroid-static</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/odroid/static</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>odroid-dynamic</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/odroid/dynamic</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>

                                <!-- LIBPI4J for the OrangePi platform -->
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>orangepi-static</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/orangepi/static</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>orangepi-dynamic</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/orangepi/dynamic</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>

                                <!-- LIBPI4J for the NanoPi platform -->
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>nanopi-static</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/nanopi/static</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.pi4j</groupId>
                                    <artifactId>pi4j-native</artifactId>
                                    <version>${project.version}</version>
                                    <classifier>nanopi-dynamic</classifier>
                                    <type>so</type>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/lib/nanopi/dynamic</outputDirectory>
                                    <destFileName>libpi4j.so</destFileName>
                                </artifactItem>

							</artifactItems>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<!-- EMBED THE JNI NATIVE LIBRARY INSIDE THE JAR -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>embed-jni-native-resource</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>add-resource</goal>
						</goals>
						<configuration>
							<resources>
								<resource>
									<directory>${project.build.directory}/lib</directory>
									<targetPath>lib</targetPath>
								</resource>
							</resources>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<!-- OSGi BUNDLE -->
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<configuration>
					<instructions>
						<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
						<Bundle-Version>${project.version}</Bundle-Version>
						<Export-Package>
                            com.pi4j.concurrent.*,
                            com.pi4j.util.*,
							com.pi4j.jni.*,
							com.pi4j.wiringpi.*,
							com.pi4j.system.*,
							com.pi4j.temperature.*,
							com.pi4j.io.serial.*,
							com.pi4j.io.gpio.*,
							com.pi4j.io.i2c.*,
                            com.pi4j.io.spi.*,
                            com.pi4j.io.w1.*,
                            com.pi4j.io.wdt.*
						</Export-Package>
                        <Import-Package>!com.pi4j.*</Import-Package>
					</instructions>
				</configuration>
 				<executions>
 					<execution>
 						<id>bundle-manifest</id>
 						<phase>process-classes</phase>
 						<goals>
 							<goal>manifest</goal>
 						</goals>
 					</execution>
 				</executions>
			</plugin>

			<!-- INCLUDE OSGi MANIFEST IN JAR -->
			<plugin>
                <groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
					</archive>
				</configuration>
				<executions>
          				<execution>
            					<goals>
              						<goal>test-jar</goal>
            					</goals>
          				</execution>
        			</executions>
			</plugin>

			<!-- OPTIONALLY DEPLOY THE FINAL JAR TO THE RASPBERRY PI -->
			<plugin>
                <groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>

					<!-- copy the compiled JAR file to the Raspberry Pi platform platform -->
					<execution>
						<id>transfer-compiled-pi4j-jar</id>
						<phase>install</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<taskdef resource="net/sf/antcontrib/antcontrib.properties"
									classpathref="maven.plugin.classpath" />
								<if>
									<equals arg1="${pi4j.dev.transfer}" arg2="true" />
									<then>

										<!-- ensure the target directory exists on the Raspberry Pi -->
										<sshexec host="${pi4j.dev.host}" port="${pi4j.dev.port}" username="${pi4j.dev.user}"
											password="${pi4j.dev.password}" trust="true" failonerror="false"
											verbose="true" command="mkdir --parents ${pi4j.dev.directory}" />

										<!-- copy the JAR file to the Raspberry Pi -->
										<scp
											file="${project.build.directory}/${project.build.finalName}.jar"
											todir="${pi4j.dev.user}:${pi4j.dev.password}@${pi4j.dev.host}:${pi4j.dev.directory}"
											port="${pi4j.dev.port}" trust="true" verbose="true" failonerror="true">
										</scp>
									</then>
								</if>
							</tasks>
						</configuration>
					</execution>
				</executions>
				<dependencies>
                    <dependency>
                        <groupId>org.apache.ant</groupId>
                        <artifactId>ant-jsch</artifactId>
                        <version>${ant-jsch.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>com.jcraft</groupId>
                        <artifactId>jsch</artifactId>
                        <version>${jsch.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>ant-contrib</groupId>
                        <artifactId>ant-contrib</artifactId>
                        <version>${ant-contrib.version}</version>
                    </dependency>
				</dependencies>
			</plugin>
		</plugins>
	</build>
</project>

POM Entry

<dependency>
   <groupId>com.pi4j</groupId>
   <artifactId>pi4j-core</artifactId>
   <version>1.2</version>
</dependency>

Download

If you think the following pi4j-core-1.2.jar downloaded from Maven central repository is inappropriate, such as containing malicious code/tools or violating the copyright, please email , thanks.



Download pi4j-core-1.2.jar file




PreviousNext

Related