Browse Source

update build.sh

reghao 3 months ago
parent
commit
c343adae88
1 changed files with 14 additions and 5 deletions
  1. 14 5
      build.sh

+ 14 - 5
build.sh

@@ -24,6 +24,9 @@ create_dirs() {
 ###############################################################################
 clone_proj() {
     cd ${proj_dir}
+    git clone --depth=1 https://github.com/reghao/ik-analyzer-solr.git
+    git clone --depth=1 https://github.com/reghao/jieba-analysis.git
+
     git clone --depth=1 https://git.reghao.cn/reghao/jutil
     git clone --depth=1 https://git.reghao.cn/reghao/tnb
     git clone --depth=1 https://git.reghao.cn/reghao/tnbapp
@@ -35,6 +38,12 @@ clone_proj() {
 build_dependencies() {
     cd ${proj_dir}/jutil
     mvn clean install -Dmaven.test.skip
+
+    cd ${proj_dir}/ik-analyzer-solr
+    mvn clean install -Dmaven.test.skip
+
+    cd ${proj_dir}/jieba-analysis
+    mvn clean install -Dmaven.test.skip
 }
 
 ###############################################################################
@@ -121,19 +130,19 @@ build_image() {
 }
 
 echo "创建 proj 目录和 bin 目录..."
-#create_dirs
+create_dirs
 
 echo "clone 项目..."
-#clone_proj
+clone_proj
 
 echo "构建依赖..."
-#build_dependencies
+build_dependencies
 
 echo "构建后端应用..."
-# build_backend
+build_backend
 
 echo "构建前端应用..."
-# build_front
+build_front
 
 echo "构建 docker 镜像..."
 build_image