diff --git a/doc/jvm/index.md b/doc/jvm/index.md
index d916cc03d..2e627ba1c 100644
--- a/doc/jvm/index.md
+++ b/doc/jvm/index.md
@@ -38,15 +38,38 @@ This command will publish the xgboost binaries, the compiled java classes as wel
For sbt, please add the repository and dependency in build.sbt as following:
-sbt
+sbt
```sbt
resolvers += "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository"
"ml.dmlc" % "xgboost4j" % "latest_source_version_num"
-```
+```
-#### Installation from repo
+#### Installation from maven repo
+
+### Access release version
+
+maven
+
+```
+
+ ml.dmlc
+ xgboost4j
+ latest_version_num
+
+```
+
+sbt
+```sbt
+ "ml.dmlc" % "xgboost4j" % "latest_version_num"
+```
+
+For the latest release version number, please check [here](https://github.com/dmlc/xgboost/releases).
+
+if you want to use `xgboost4j-spark`, you just need to replace xgboost4j with `xgboost4j-spark`
+
+### Access SNAPSHOT version
You need to add github as repo:
@@ -83,12 +106,14 @@ the add dependency as following:
"ml.dmlc" % "xgboost4j" % "latest_version_num"
```
-For the latest release version number, please check [here](https://github.com/dmlc/xgboost/releases).
+For the latest release version number, please check [here](https://github.com/CodingCat/xgboost/tree/maven-repo/ml/dmlc/xgboost4j).
+
+if you want to use `xgboost4j-spark`, you just need to replace xgboost4j with `xgboost4j-spark`
After integrating with Dataframe/Dataset APIs of Spark 2.0, XGBoost4J-Spark only supports compile with Spark 2.x. You can build XGBoost4J-Spark as a component of XGBoost4J by running `mvn package`, and you can specify the version of spark with `mvn -Dspark.version=2.0.0 package`. (To continue working with Spark 1.x, the users are supposed to update pom.xml by modifying the properties like `spark.version`, `scala.version`, and `scala.binary.version`. Users also need to change the implementation by replacing SparkSession with SQLContext and the type of API parameters from Dataset[_] to Dataframe)
#### Enabling OpenMP for Mac OS
-If you are on Mac OS and using a compiler that supports OpenMP, you need to go to the file `xgboost/jvm-packages/create_jni.py` and comment out the line
+If you are on Mac OS and using a compiler that supports OpenMP, you need to go to the file `xgboost/jvm-packages/create_jni.py` and comment out the line
```python
CONFIG["USE_OPENMP"] = "OFF"
```
diff --git a/jvm-packages/README.md b/jvm-packages/README.md
index 4fef01e13..8ad70d7cf 100644
--- a/jvm-packages/README.md
+++ b/jvm-packages/README.md
@@ -20,6 +20,27 @@ You can find more about XGBoost on [Documentation](https://xgboost.readthedocs.o
XGBoost4J, XGBoost4J-Spark, etc. in maven repository is compiled with g++-4.8.5
+### Access release version
+
+maven
+
+```
+
+ ml.dmlc
+ xgboost4j
+ latest_version_num
+
+```
+
+sbt
+```sbt
+ "ml.dmlc" % "xgboost4j" % "latest_version_num"
+```
+
+For the latest release version number, please check [here](https://github.com/dmlc/xgboost/releases).
+
+if you want to use `xgboost4j-spark`, you just need to replace xgboost4j with `xgboost4j-spark`
+
### Access SNAPSHOT version
You need to add github as repo:
@@ -57,7 +78,7 @@ the add dependency as following:
"ml.dmlc" % "xgboost4j" % "latest_version_num"
```
-For the latest release version number, please check [here](https://github.com/dmlc/xgboost/releases).
+For the latest release version number, please check [here](https://github.com/CodingCat/xgboost/tree/maven-repo/ml/dmlc/xgboost4j).
if you want to use `xgboost4j-spark`, you just need to replace xgboost4j with `xgboost4j-spark`
diff --git a/jvm-packages/pom.xml b/jvm-packages/pom.xml
index eb793d1d2..da4e90b02 100644
--- a/jvm-packages/pom.xml
+++ b/jvm-packages/pom.xml
@@ -8,6 +8,21 @@
xgboost-jvm
0.80-SNAPSHOT
pom
+ XGBoost JVM Package
+ JVM Package for XGBoost
+ https://github.com/dmlc/xgboost/tree/master/jvm-packages
+
+
+ The Apache License, Version 2.0
+ http://www.apache.org/licenses/LICENSE-2.0.txt
+
+
+
+
+ CodingCat
+ codingcat@apache.org
+
+
UTF-8
UTF-8
@@ -32,6 +47,80 @@
xgboost4j-flink
+
+ release
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 3.0.2
+
+
+ empty-javadoc-jar
+ package
+
+ jar
+
+
+ javadoc
+ ${basedir}/javadoc
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-release-plugin
+ 2.5.3
+
+ true
+ false
+ release
+ deploy
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.5
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.2.1
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.7
+ true
+
+ ossrh
+ https://oss.sonatype.org/
+ false
+
+
+
+
+
assembly
@@ -111,6 +200,12 @@
+
+
+ ossrh
+ https://oss.sonatype.org/content/repositories/snapshots
+
+
@@ -136,30 +231,6 @@
-
- org.apache.maven.plugins
- maven-javadoc-plugin
- 2.10.3
-
-
- ml.dmlc.xgboost4j.java.example
-
-
-
-
- org.apache.maven.plugins
- maven-source-plugin
- 3.0.1
-
-
- attach-sources
- verify
-
- jar-no-fork
-
-
-
-
net.alchim31.maven
maven-site-plugin
@@ -181,7 +252,6 @@
- ...