Merge pull request #1000 from CodingCat/installation_doc
[jvm-packages] run native lib building command from maven
This commit is contained in:
commit
612ccd0bb7
@ -7,12 +7,9 @@ You have find XGBoost JVM Package!
|
||||
|
||||
Installation
|
||||
------------
|
||||
To build XGBoost4J contains two steps.
|
||||
- First type the following command to build JNI library.
|
||||
```bash
|
||||
./create_jni.sh
|
||||
```
|
||||
- Then package the libary. you can run `mvn package` in xgboost4j folder or just use IDE(eclipse/netbeans) to open this maven project and build.
|
||||
Currently, XGBoost4J only support installation from source. Building XGBoost4J using Maven requires Maven 3 or newer and Java 7+.
|
||||
|
||||
To install XGBoost4J, it is as simple as run `mvn package` under jvm-packages.
|
||||
|
||||
Contents
|
||||
--------
|
||||
|
||||
@ -29,6 +29,22 @@
|
||||
<skipAssembly>false</skipAssembly>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<executions>
|
||||
<execution><!-- Run our version calculation script -->
|
||||
<id>native</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>exec</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<executable>create_jni.sh</executable>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
|
||||
@ -75,7 +75,6 @@ if [ ${TASK} == "java_test" ]; then
|
||||
set -e
|
||||
make jvm-packages
|
||||
cd jvm-packages
|
||||
./create_jni.sh
|
||||
mvn clean install -DskipTests=true
|
||||
mvn test
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user