0 Star 1 Fork 1

xudian/pi4j

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
BUILD.INSTRUCTIONS 3.42 KB
一键复制 编辑 原始数据 按行查看 历史
Robert Savage 提交于 2014-09-15 22:11 . removed google code download site
--------------------
PROJECT BUILD
--------------------
Use the following command to build the Pi4J Java libraries.
> mvn clean install
Use the following command to build the Pi4J Java libraries and the JNI native library.
(Note that building the native code requires a SSH connection to a Raspberry Pi. The
connection and credentials to access the Pi can be defined in a custom user profile in
the parent POM.XML file or included in the command line as shown below. As of
version 1.0, only hard-float ABI native builds are supported.)
> mvn clean install -P native
> mvn clean install -P native -Dpi.host=192.168.10.10
Please note that the following prerequisites are required to be installed on your RaspberryPi
before the pi4j-native project can be compiled. The pi4j-native build will attempt to install
these prerequisites automatically using apt-get.
- gcc 4.6.3 or newer (sudo apt-get install gcc)
- git-core (sudo apt-get install git-core)
- A working JDK7 (Oracle JDK) (sudo apt-get install oracle-java7-jdk)
- wiringPi source and platform compiled binary (http://wiringpi.com/download-and-install/)
Use the following command to deploy a snapshot build to the OSS Maven staging repository.
(Note, you must have a "sonatype-oss-snapshot-repo" site credentials defined in your private Maven settings.xml file.)
> mvn clean deploy (Java libraries only)
> mvn clean deploy --projects pi4j-native -P native (JNI native library for hard-float only)
> mvn clean deploy -P native (Java libraries and JNI native library)
If changes or additions are made to the Java JNI classes, then you may need to regenerate the native JNI .H header files.
Use the following Maven command to regenerate the .H header source file.
(NOTE: This command must be executed inside the pi4j-native project, not at the parent project level.)
> mvn generate-sources -P native,generate-jni-headers
--------------------
DOWNLOADS
--------------------
Use the following Maven command to deploy the downloadable artifacts to the Pi4J downloads page.
> mvn deploy -Drelease-build --projects pi4j-distribution
--------------------
SITE DOCUMENTATION
--------------------
Use the following Maven command to locally generate project site documentation:
> mvn -N clean site
Use the following Maven command to generate and deploy the project site documentation to the Github pages.
(Note, you must have a "github" site credentials defined in your private Maven settings.xml file.
Please see this README for detail on the Maven plugin performing this task: https://github.com/github/maven-plugins/blob/master/README.md)
> mvn -N clean site -Pdeploy-site
---------------------------
PUBLIC SNAPSHOT DEPLOYMENT
---------------------------
Use the following series of instructions to publish a public deployment of a snapshot build:
> mvn clean deploy -Drelease-build
> mvn -N clean site -Pdeploy-site
---------------------------
PUBLIC RELEASE DEPLOYMENT
---------------------------
Use the following series of instructions to publish a public deployment of a release build:
- remove "-SNAPSHOT" from all project pom.xml files
> mvn clean deploy -Drelease-build -Dgpg.passphrase=your-passphrase
> mvn -N clean site -Pdeploy-site
- create source tag for release
- send release notification via @Pi4J on Twitter
- create next development source branch
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/SuperDian/pi4j.git
git@gitee.com:SuperDian/pi4j.git
SuperDian
pi4j
pi4j
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385