run native lib building command from maven
This commit is contained in:
parent
6321bc20ea
commit
a31a978471
@ -8,6 +8,7 @@ You have find XGBoost JVM Package!
|
|||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
To build XGBoost4J contains two steps.
|
To build XGBoost4J contains two steps.
|
||||||
|
|
||||||
- First type the following command to build JNI library.
|
- First type the following command to build JNI library.
|
||||||
```bash
|
```bash
|
||||||
./create_jni.sh
|
./create_jni.sh
|
||||||
|
|||||||
@ -29,6 +29,22 @@
|
|||||||
<skipAssembly>false</skipAssembly>
|
<skipAssembly>false</skipAssembly>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</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>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|||||||
@ -75,7 +75,6 @@ if [ ${TASK} == "java_test" ]; then
|
|||||||
set -e
|
set -e
|
||||||
make jvm-packages
|
make jvm-packages
|
||||||
cd jvm-packages
|
cd jvm-packages
|
||||||
./create_jni.sh
|
|
||||||
mvn clean install -DskipTests=true
|
mvn clean install -DskipTests=true
|
||||||
mvn test
|
mvn test
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user