From 5ad045d07447fc2667530fba40714f238c0a391d Mon Sep 17 00:00:00 2001
From: luoxj <1227731421@qq.com>
Date: Wed, 9 Sep 2020 14:31:47 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
assembly/assembly.xml | 55 ++++++++++++++++++++++++++++++++++++
bin/start.bat | 7 +++++
bin/stop.bat | 5 ++++
pom.xml | 66 +++++++++++++++++++++++++++++++++++++++++--
4 files changed, 131 insertions(+), 2 deletions(-)
create mode 100644 assembly/assembly.xml
create mode 100644 bin/start.bat
create mode 100644 bin/stop.bat
diff --git a/assembly/assembly.xml b/assembly/assembly.xml
new file mode 100644
index 00000000..8968194b
--- /dev/null
+++ b/assembly/assembly.xml
@@ -0,0 +1,55 @@
+
+ bin
+
+ zip
+ tar.gz
+
+
+
+
+
+ target
+
+ *.jar
+
+ ./
+
+
+ target/lib
+ ./lib
+
+
+ src/main/resources
+ ./config
+
+
+ src/main/webapp/static
+ ./static
+
+
+ src/main/webapp/html
+ ./html
+
+
+ src/main/webapp/templets
+ ./templets
+
+
+ src/main/webapp/upload
+ ./upload
+
+
+ src/main/webapp/WEB-INF
+ ./lib/WEB-INF
+
+
+ ./bin
+
+ *.sh
+ *.cmd
+ *.bat
+
+ ./
+
+
+
\ No newline at end of file
diff --git a/bin/start.bat b/bin/start.bat
new file mode 100644
index 00000000..fc9d59e6
--- /dev/null
+++ b/bin/start.bat
@@ -0,0 +1,7 @@
+@echo off
+
+start javaw -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=128m -Xms1024m -Xmx1024m -Xmn256m -Xss256k -XX:SurvivorRatio=8 -XX:+UseConcMarkSweepGC ^
+-Dloader.path=lib,config ^
+-jar -Dfile.encoding=utf-8 -Duser.timezone=GMT+08 -Duser.language=zh -Duser.region=CN ./ms-mcms.jar
+:: > boot.log 2>&1
+exit
\ No newline at end of file
diff --git a/bin/stop.bat b/bin/stop.bat
new file mode 100644
index 00000000..7b5b057f
--- /dev/null
+++ b/bin/stop.bat
@@ -0,0 +1,5 @@
+@echo off
+
+taskkill -f -t -im javaw.exe
+
+exit
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 15a6a7c9..798fc971 100644
--- a/pom.xml
+++ b/pom.xml
@@ -41,6 +41,68 @@
${java.version}
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ repackage
+
+
+
+
+ ZIP
+
+
+
+ non-exists
+ non-exists
+
+
+ true
+
+
+
+
+ maven-dependency-plugin
+
+
+ copy-dependencies
+ package
+
+ copy-dependencies
+
+
+
+ ${project.build.directory}/lib
+ false
+ false
+ runtime
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ 3.1.0
+
+
+ ./assembly/assembly.xml
+
+
+
+
+ make-assembly
+ package
+
+ single
+
+
+
+
@@ -50,14 +112,14 @@
html/**
upload/**
templets/**
+
+
src/main/java
**/*.java
- **/MSApplication.class
- **/MSServletInitializer.class