pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>org.leanwo.server.management</groupId>
  5. <artifactId>ServerManagement</artifactId>
  6. <version>0.0.1</version>
  7. <packaging>jar</packaging>
  8. <name>ServerManagement</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. </properties>
  13. <dependencies>
  14. <dependency>
  15. <groupId>junit</groupId>
  16. <artifactId>junit</artifactId>
  17. <version>3.8.1</version>
  18. <scope>test</scope>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.slf4j</groupId>
  22. <artifactId>slf4j-api</artifactId>
  23. <version>1.7.25</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.slf4j</groupId>
  27. <artifactId>slf4j-log4j12</artifactId>
  28. <version>1.7.25</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework</groupId>
  32. <artifactId>spring-core</artifactId>
  33. <version>5.0.1.RELEASE</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework</groupId>
  37. <artifactId>spring-context</artifactId>
  38. <version>5.0.1.RELEASE</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework</groupId>
  42. <artifactId>spring-beans</artifactId>
  43. <version>5.0.1.RELEASE</version>
  44. </dependency>
  45. <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
  46. <dependency>
  47. <groupId>org.springframework</groupId>
  48. <artifactId>spring-webmvc</artifactId>
  49. <version>4.3.12.RELEASE</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.commons</groupId>
  53. <artifactId>commons-exec</artifactId>
  54. <version>1.3</version>
  55. </dependency>
  56. <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
  57. <dependency>
  58. <groupId>com.fasterxml.jackson.core</groupId>
  59. <artifactId>jackson-core</artifactId>
  60. <version>2.9.2</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.fasterxml.jackson.core</groupId>
  64. <artifactId>jackson-databind</artifactId>
  65. <version>2.9.2</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.fasterxml.jackson.core</groupId>
  69. <artifactId>jackson-annotations</artifactId>
  70. <version>2.9.2</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.dom4j</groupId>
  74. <artifactId>dom4j</artifactId>
  75. <version>2.0.0-RC1</version>
  76. </dependency>
  77. </dependencies>
  78. <build>
  79. <resources>
  80. <resource>
  81. <directory>src/main/resources</directory>
  82. <filtering>true</filtering>
  83. <includes>
  84. <include>**/*.png</include>
  85. <include>**/*.properties</include>
  86. <include>**/*.xml</include>
  87. </includes>
  88. </resource>
  89. </resources>
  90. <plugins>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-compiler-plugin</artifactId>
  94. <configuration>
  95. <source>1.8</source>
  96. <target>1.8</target>
  97. </configuration>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-jar-plugin</artifactId>
  102. <version>3.0.2</version>
  103. <configuration>
  104. <archive>
  105. <manifest>
  106. <addClasspath>true</addClasspath>
  107. <classpathPrefix>lib/</classpathPrefix>
  108. <mainClass>com.leanwo.management.App</mainClass>
  109. </manifest>
  110. </archive>
  111. </configuration>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-dependency-plugin</artifactId>
  116. <version>2.10</version>
  117. <executions>
  118. <execution>
  119. <id>copy-dependencies</id>
  120. <phase>package</phase>
  121. <goals>
  122. <goal>copy-dependencies</goal>
  123. </goals>
  124. <configuration>
  125. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  126. </configuration>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-resources-plugin</artifactId>
  133. <version>3.0.2</version>
  134. <executions>
  135. <execution>
  136. <id>copy-resources-config</id>
  137. <phase>package</phase>
  138. <goals>
  139. <goal>copy-resources</goal>
  140. </goals>
  141. <configuration>
  142. <encoding>UTF-8</encoding>
  143. <outputDirectory>${project.build.directory}/ServerManagement/config
  144. </outputDirectory>
  145. <resources>
  146. <resource>
  147. <directory>config/</directory>
  148. <excludes>
  149. <exclude>*.bat</exclude>
  150. </excludes>
  151. </resource>
  152. </resources>
  153. </configuration>
  154. </execution>
  155. <execution>
  156. <id>copy-resources-lib</id>
  157. <phase>package</phase>
  158. <goals>
  159. <goal>copy-resources</goal>
  160. </goals>
  161. <configuration>
  162. <encoding>UTF-8</encoding>
  163. <outputDirectory>${project.build.directory}/ServerManagement/lib
  164. </outputDirectory>
  165. <resources>
  166. <resource>
  167. <directory>${project.build.directory}/lib/</directory>
  168. </resource>
  169. </resources>
  170. </configuration>
  171. </execution>
  172. <execution>
  173. <id>copy-resources-bat</id>
  174. <phase>package</phase>
  175. <goals>
  176. <goal>copy-resources</goal>
  177. </goals>
  178. <configuration>
  179. <encoding>UTF-8</encoding>
  180. <outputDirectory>${project.build.directory}/ServerManagement/
  181. </outputDirectory>
  182. <resources>
  183. <resource>
  184. <directory>config/</directory>
  185. <includes>
  186. <include>*.bat</include>
  187. </includes>
  188. </resource>
  189. <resource>
  190. <directory>${project.build.directory}</directory>
  191. <includes>
  192. <include>ServerManagement*.jar</include>
  193. </includes>
  194. </resource>
  195. </resources>
  196. </configuration>
  197. </execution>
  198. </executions>
  199. </plugin>
  200. </plugins>
  201. </build>
  202. </project>