diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh
index 3d9456444afd..afd0c99dad6f 100755
--- a/ci/docker/runtime_functions.sh
+++ b/ci/docker/runtime_functions.sh
@@ -1235,7 +1235,7 @@ nightly_java_demo_test_cpu() {
nightly_scala_demo_test_cpu() {
set -ex
cd /work/mxnet/scala-package/mxnet-demo/scala-demo
- make scalademo
+ make scalacidemo
bash bin/demo.sh
bash bin/run_im.sh
}
diff --git a/scala-package/mxnet-demo/scala-demo/Makefile b/scala-package/mxnet-demo/scala-demo/Makefile
index 71502b214d55..3cb1c69dfe02 100644
--- a/scala-package/mxnet-demo/scala-demo/Makefile
+++ b/scala-package/mxnet-demo/scala-demo/Makefile
@@ -17,7 +17,6 @@
SCALA_VERSION_PROFILE := 2.11
SCALA_VERSION := 2.11.8
-MXNET_VERSION := [1.5.0-SNAPSHOT,\)
ifeq ($(OS),Windows_NT)
UNAME_S := Windows
@@ -44,7 +43,11 @@ endif
scalademo:
(mvn package -Dmxnet.profile=$(SCALA_PKG_PROFILE) \
-Dmxnet.scalaprofile=$(SCALA_VERSION_PROFILE) \
- -Dmxnet.version=$(MXNET_VERSION) \
+ -Dscala.version=$(SCALA_VERSION))
+
+scalacidemo:
+ (mvn -Pci-nightly package -Dmxnet.profile=$(SCALA_PKG_PROFILE) \
+ -Dmxnet.scalaprofile=$(SCALA_VERSION_PROFILE) \
-Dscala.version=$(SCALA_VERSION))
scalaclean:
diff --git a/scala-package/mxnet-demo/scala-demo/README.md b/scala-package/mxnet-demo/scala-demo/README.md
index 300fc7b2e108..1cc5a6d42b95 100644
--- a/scala-package/mxnet-demo/scala-demo/README.md
+++ b/scala-package/mxnet-demo/scala-demo/README.md
@@ -4,14 +4,13 @@ This is an project created to use Maven-published Scala package with two Scala e
User are required to use `mvn package` to build the package,
which are shown below:
```Bash
-export SCALA_VERSION_PROFILE=2.11 SCALA_VERSION=2.11.8 MXNET_VERSION=1.3.0
+export SCALA_VERSION_PROFILE=2.11 SCALA_VERSION=2.11.8
export SCALA_PKG_PROFILE=
mvn package -Dmxnet.profile=$(SCALA_PKG_PROFILE) \
-Dmxnet.scalaprofile=$(SCALA_VERSION_PROFILE) \
- -Dmxnet.version=$(MXNET_VERSION) \
-Dscala.version=$(SCALA_VERSION)
```
-These environment variable (`SCALA_PKG_PROFILE`, `SCALA_VERSION_PROFILE`, `MXNET_VERSION`, `SCALA_VERSION`)
+These environment variable (`SCALA_PKG_PROFILE`, `SCALA_VERSION_PROFILE`, `SCALA_VERSION`)
should be set before executing the line above.
To obtain the most recent MXNet version, please click [here](https://mvnrepository.com/search?q=org.apache.mxnet)
diff --git a/scala-package/mxnet-demo/scala-demo/pom.xml b/scala-package/mxnet-demo/scala-demo/pom.xml
index 3eaa5d9905ec..86593ace0557 100644
--- a/scala-package/mxnet-demo/scala-demo/pom.xml
+++ b/scala-package/mxnet-demo/scala-demo/pom.xml
@@ -9,18 +9,26 @@
MXNet Scala Demo
pom
-
-
- Apache Snapshot
- https://repository.apache.org/content/groups/snapshots
-
-
+
+
+ ci-nightly
+
+
+ Apache Snapshot
+ https://repository.apache.org/content/groups/snapshots
+
+
+
+ [1.5.0-SNAPSHOT, )
+
+
+
org.apache.mxnet
mxnet-full_${mxnet.scalaprofile}-${mxnet.profile}
- ${mxnet.version}
+ [1.3.1, )
org.scala-lang