소스 검색

修改程序管理器。

YangZhiJie 8 년 전
부모
커밋
e7f652c1e2
4개의 변경된 파일24개의 추가작업 그리고 9개의 파일을 삭제
  1. 3 3
      config/applicationContext.xml
  2. 1 1
      config/run.bat
  3. 6 0
      package.bat
  4. 14 5
      pom.xml

+ 3 - 3
config/applicationContext.xml

@@ -38,8 +38,8 @@
 		<property name="stopBatFile" value="stop.bat"></property>
 		<property name="autoUpdateFileNames">
 			<list>
-				<value>DingDingServer-0.0.1-SNAPSHOT.jar</value>
-				<value>DingDingServer-0.0.1-SNAPSHOT.jar</value>
+				<value>DingDingServer-0.0.1.jar</value>
+				<value>DingDingServer-0.0.1.jar</value>
 			</list>
 		</property>		
 		<property name="xmlConfigPath" >
@@ -63,7 +63,7 @@
 		<property name="token" value="123456"></property>
 		<property name="autoUpdateFileNames">
 			<list>
-				<value>report-server-0.0.1-SNAPSHOT.jar</value>
+				<value>report-server-0.0.1.jar</value>
 				<value>apache-tomcat-9.0.2-windows-x64.zip</value>
 				<value>apache-tomcat-9.0.2-windows-x86.zip</value>
 			</list>

+ 1 - 1
config/run.bat

@@ -2,4 +2,4 @@ title Report Server
 set current_path="%cd%"
 cd %current_path%
 @echo off
-start javaw -jar %current_path%\ServerManagement-0.0.1-SNAPSHOT.jar
+start javaw -jar %current_path%\ServerManagement-0.0.1.jar

+ 6 - 0
package.bat

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

+ 14 - 5
pom.xml

@@ -4,7 +4,7 @@
 
 	<groupId>org.leanwo.server.management</groupId>
 	<artifactId>ServerManagement</artifactId>
-	<version>0.0.1-SNAPSHOT</version>
+	<version>0.0.1</version>
 	<packaging>jar</packaging>
 
 	<name>ServerManagement</name>
@@ -139,6 +139,8 @@
 				</executions>
 			</plugin>
 			
+			
+			
 			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-resources-plugin</artifactId>
@@ -152,7 +154,7 @@
 						</goals>
 						<configuration>
 							<encoding>UTF-8</encoding>
-							<outputDirectory>${project.build.directory}/config
+							<outputDirectory>${project.build.directory}/ServerManagement/config
 							</outputDirectory>
 							<resources>
 								<resource>
@@ -164,6 +166,7 @@
 							</resources>
 						</configuration>
 					</execution>
+					
 					<execution>
 						<id>copy-resources-bat</id>
 						<phase>package</phase>
@@ -172,7 +175,7 @@
 						</goals>
 						<configuration>
 							<encoding>UTF-8</encoding>
-							<outputDirectory>${project.build.directory}/
+							<outputDirectory>${project.build.directory}/ServerManagement/
 							</outputDirectory>
 							<resources>
 								<resource>
@@ -181,12 +184,18 @@
 										<include>*.bat</include>
 									</includes>
 								</resource>
+								<resource>
+									<directory>${project.build.directory}</directory>
+									<includes>
+										<include>ServerManagement*.jar</include>
+									</includes>
+								</resource>
 							</resources>
 						</configuration>
 					</execution>
+					
 				</executions>
-			</plugin>
-			
+			</plugin>			
 		</plugins>
 	</build>