pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
  52. <dependency>
  53. <groupId>com.fasterxml.jackson.core</groupId>
  54. <artifactId>jackson-core</artifactId>
  55. <version>2.9.2</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.fasterxml.jackson.core</groupId>
  59. <artifactId>jackson-databind</artifactId>
  60. <version>2.9.2</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.fasterxml.jackson.core</groupId>
  64. <artifactId>jackson-annotations</artifactId>
  65. <version>2.9.2</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.dom4j</groupId>
  69. <artifactId>dom4j</artifactId>
  70. <version>2.0.0-RC1</version>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <resources>
  75. <resource>
  76. <directory>src/main/resources</directory>
  77. <filtering>true</filtering>
  78. <includes>
  79. <include>**/*.png</include>
  80. <include>**/*.properties</include>
  81. <include>**/*.xml</include>
  82. </includes>
  83. </resource>
  84. </resources>
  85. <plugins>
  86. <plugin>
  87. <groupId>org.apache.maven.plugins</groupId>
  88. <artifactId>maven-compiler-plugin</artifactId>
  89. <configuration>
  90. <source>1.8</source>
  91. <target>1.8</target>
  92. </configuration>
  93. </plugin>
  94. <plugin>
  95. <groupId>org.apache.maven.plugins</groupId>
  96. <artifactId>maven-jar-plugin</artifactId>
  97. <version>3.0.2</version>
  98. <configuration>
  99. <archive>
  100. <manifest>
  101. <addClasspath>true</addClasspath>
  102. <classpathPrefix>lib/</classpathPrefix>
  103. <mainClass>com.leanwo.management.App</mainClass>
  104. </manifest>
  105. </archive>
  106. </configuration>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-dependency-plugin</artifactId>
  111. <version>2.10</version>
  112. <executions>
  113. <execution>
  114. <id>copy-dependencies</id>
  115. <phase>package</phase>
  116. <goals>
  117. <goal>copy-dependencies</goal>
  118. </goals>
  119. <configuration>
  120. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  121. </configuration>
  122. </execution>
  123. </executions>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-resources-plugin</artifactId>
  128. <version>3.0.2</version>
  129. <executions>
  130. <execution>
  131. <id>copy-resources-config</id>
  132. <phase>package</phase>
  133. <goals>
  134. <goal>copy-resources</goal>
  135. </goals>
  136. <configuration>
  137. <encoding>UTF-8</encoding>
  138. <outputDirectory>${project.build.directory}/ServerManagement/config
  139. </outputDirectory>
  140. <resources>
  141. <resource>
  142. <directory>config/</directory>
  143. <excludes>
  144. <exclude>*.bat</exclude>
  145. </excludes>
  146. </resource>
  147. </resources>
  148. </configuration>
  149. </execution>
  150. <execution>
  151. <id>copy-resources-lib</id>
  152. <phase>package</phase>
  153. <goals>
  154. <goal>copy-resources</goal>
  155. </goals>
  156. <configuration>
  157. <encoding>UTF-8</encoding>
  158. <outputDirectory>${project.build.directory}/ServerManagement/lib
  159. </outputDirectory>
  160. <resources>
  161. <resource>
  162. <directory>${project.build.directory}/lib/</directory>
  163. </resource>
  164. </resources>
  165. </configuration>
  166. </execution>
  167. <execution>
  168. <id>copy-resources-bat</id>
  169. <phase>package</phase>
  170. <goals>
  171. <goal>copy-resources</goal>
  172. </goals>
  173. <configuration>
  174. <encoding>UTF-8</encoding>
  175. <outputDirectory>${project.build.directory}/ServerManagement/
  176. </outputDirectory>
  177. <resources>
  178. <resource>
  179. <directory>config/</directory>
  180. <includes>
  181. <include>*.bat</include>
  182. </includes>
  183. </resource>
  184. <resource>
  185. <directory>${project.build.directory}</directory>
  186. <includes>
  187. <include>ServerManagement*.jar</include>
  188. </includes>
  189. </resource>
  190. </resources>
  191. </configuration>
  192. </execution>
  193. </executions>
  194. </plugin>
  195. </plugins>
  196. </build>
  197. </project>