diff --git a/scala-package/.gitignore b/scala-package/.gitignore
index 9a89bef324bc..8190f3a266f1 100644
--- a/scala-package/.gitignore
+++ b/scala-package/.gitignore
@@ -1,10 +1,10 @@
.flattened-pom.xml
core/src/main/scala/org/apache/mxnet/NDArrayAPIBase.scala
core/src/main/scala/org/apache/mxnet/NDArrayBase.scala
+core/src/main/scala/org/apache/mxnet/NDArrayRandomAPIBase.scala
core/src/main/scala/org/apache/mxnet/javaapi/NDArrayBase.scala
core/src/main/scala/org/apache/mxnet/SymbolAPIBase.scala
core/src/main/scala/org/apache/mxnet/SymbolBase.scala
-core/src/main/scala/org/apache/mxnet/NDArrayRandomAPIBase.scala
core/src/main/scala/org/apache/mxnet/SymbolRandomAPIBase.scala
examples/scripts/infer/images/
examples/scripts/infer/models/
diff --git a/scala-package/core/pom.xml b/scala-package/core/pom.xml
index d48b36774f63..84051c5294b1 100644
--- a/scala-package/core/pom.xml
+++ b/scala-package/core/pom.xml
@@ -96,9 +96,10 @@
NDArrayAPIBase.scala
NDArrayBase.scala
+ NDArrayRandomAPIBase.scala
javaapi/NDArrayBase.scala
SymbolAPIBase.scala
- SymbolBase.scala
+ SymbolRandomAPIBase.scala
false