diff --git a/assembly/assembly.xml b/assembly/assembly.xml new file mode 100644 index 0000000000000000000000000000000000000000..d98266ff042fe9d68d4c39e8fa4db9f9dc5034ac --- /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 0000000000000000000000000000000000000000..5eca5999b5b0a9e2a9935daf5da917befcc223c8 --- /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 ./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 0000000000000000000000000000000000000000..7b5b057f74c6b77ea5f609bff1e493be54d6e5f0 --- /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 fbdfee43082ba71117fe2510a962eade4276a020..468953650f6879aca3cfad03d95eea82aa4ba3e5 100644 --- a/pom.xml +++ b/pom.xml @@ -1,95 +1,153 @@ - + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + org.springframework.boot spring-boot-starter-parent 2.2.2.RELEASE - - 4.0.0 - net.mingsoft - mcms - 5.0.0 - ms-mcms - - 1.8 - - - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - http://repo1.maven.org/maven2/ - - true - - - true - - - - sonatype - Sonatype Snapshots - https://oss.sonatype.org/content/groups/public/ - - true - - - true - - - - - - net.mingsoft - ms-mpeople - 1.0.18 - - - - net.mingsoft - ms-upgrader - 1.0.17 - - - - ms-mcms - - - org.apache.maven.plugins - maven-compiler-plugin - 3.1 - - ${java.version} - ${java.version} - - - - org.springframework.boot - spring-boot-maven-plugin - - - - repackage - - - - - true - - - - - - src/main/webapp - - - src/main/resources - - - src/main/java - - - compile - + + 4.0.0 + net.mingsoft + mcms + 5.0.0 + ms-mcms + + 1.8 + + + + alimaven + aliyun maven + http://maven.aliyun.com/nexus/content/groups/public/ + + true + + + true + + + + + sonatype-nexus-snapshots + Sonatype Nexus Snapshots + http://repo1.maven.org/maven2/ + + true + + + true + + + + + + net.mingsoft + ms-mpeople + 1.0.18 + + + + net.mingsoft + ms-upgrader + 1.0.17 + + + + + + src/main/java + + + src/main/webapp + + html/ + static/ + upload/ + templets/ + WEB-INF/ + + + + compile + ms-mcms + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.1 + + ${java.version} + ${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 + + + + + + \ No newline at end of file