Sfoglia il codice sorgente

修改打包的程序。

yangzhijie 6 anni fa
parent
commit
f19bb5bef8
2 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 2 2
      bat/package.bat
  2. 4 4
      pom.xml

+ 2 - 2
package.bat → bat/package.bat

@@ -1,6 +1,6 @@
 title maven clean package
 set current_path="%cd%"
 cd %current_path%
-call mvn clean 
-call mvn package
+cd ..
+call mvn clean package
 pause

+ 4 - 4
pom.xml

@@ -128,7 +128,7 @@
 				<version>3.1.1</version>
 				<configuration>
 					<!-- 指定打包的jar包输出路径 -->
-					<outputDirectory>${project.build.directory}/${project.version}</outputDirectory>
+					<outputDirectory>${project.build.directory}/ServerManagement</outputDirectory>
 					<!--注意这玩意从编译结果目录开始算目录结构-->
 					<excludes>				         
 				         <exclude>**/*.yml</exclude>
@@ -165,7 +165,7 @@
 						</goals>
 						<configuration>
 							<!-- 资源文件输出目录 -->
-							<outputDirectory>${project.build.directory}/${project.version}/resources</outputDirectory>
+							<outputDirectory>${project.build.directory}/ServerManagement/resources</outputDirectory>
 							<resources>
 								<resource>
 									<directory>src/main/resources</directory>
@@ -185,7 +185,7 @@
 						</goals>
 						<configuration>
 							<!-- 资源文件输出目录 -->
-							<outputDirectory>${project.build.directory}/${project.version}</outputDirectory>
+							<outputDirectory>${project.build.directory}/ServerManagement</outputDirectory>
 							<resources>
 								<resource>
 									<directory>src/main/resources</directory>
@@ -213,7 +213,7 @@
 						</goals>
 						<configuration>
 							<!-- 依赖包输出目录 -->
-							<outputDirectory>${project.build.directory}/${project.version}/lib</outputDirectory>
+							<outputDirectory>${project.build.directory}/ServerManagement/lib</outputDirectory>
 							<excludeTransitive>false</excludeTransitive>
 							<stripVersion>false</stripVersion>
 							<!-- 依赖包的作用域 -->