pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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-SNAPSHOT</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. <plugins>
  80. <plugin>
  81. <groupId>org.apache.maven.plugins</groupId>
  82. <artifactId>maven-compiler-plugin</artifactId>
  83. <configuration>
  84. <source>1.8</source>
  85. <target>1.8</target>
  86. </configuration>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-shade-plugin</artifactId>
  91. <version>3.1.0</version>
  92. <executions>
  93. <execution>
  94. <phase>package</phase>
  95. <goals>
  96. <goal>shade</goal>
  97. </goals>
  98. <configuration>
  99. <filters>
  100. <filter>
  101. <artifact>*:*</artifact>
  102. <excludes>
  103. <exclude>META-INF/*.SF</exclude>
  104. <exclude>META-INF/*.DSA</exclude>
  105. <exclude>META-INF/*.RSA</exclude>
  106. </excludes>
  107. </filter>
  108. </filters>
  109. <transformers>
  110. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  111. <resource>META-INF/spring.schemas</resource>
  112. </transformer>
  113. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  114. <resource>META-INF/spring.handlers</resource>
  115. </transformer>
  116. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  117. <manifestEntries>
  118. <Main-Class>org.leanwo.management.ServerManagementApp</Main-Class>
  119. </manifestEntries>
  120. </transformer>
  121. </transformers>
  122. <createDependencyReducedPom>false</createDependencyReducedPom>
  123. </configuration>
  124. </execution>
  125. </executions>
  126. </plugin>
  127. <plugin>
  128. <groupId>org.apache.maven.plugins</groupId>
  129. <artifactId>maven-resources-plugin</artifactId>
  130. <version>3.0.2</version>
  131. <executions>
  132. <execution>
  133. <id>copy-resources-config</id>
  134. <phase>package</phase>
  135. <goals>
  136. <goal>copy-resources</goal>
  137. </goals>
  138. <configuration>
  139. <encoding>UTF-8</encoding>
  140. <outputDirectory>${project.build.directory}/config
  141. </outputDirectory>
  142. <resources>
  143. <resource>
  144. <directory>config/</directory>
  145. <excludes>
  146. <exclude>*.bat</exclude>
  147. </excludes>
  148. </resource>
  149. </resources>
  150. </configuration>
  151. </execution>
  152. <execution>
  153. <id>copy-resources-bat</id>
  154. <phase>package</phase>
  155. <goals>
  156. <goal>copy-resources</goal>
  157. </goals>
  158. <configuration>
  159. <encoding>UTF-8</encoding>
  160. <outputDirectory>${project.build.directory}/
  161. </outputDirectory>
  162. <resources>
  163. <resource>
  164. <directory>config/</directory>
  165. <includes>
  166. <include>*.bat</include>
  167. </includes>
  168. </resource>
  169. </resources>
  170. </configuration>
  171. </execution>
  172. </executions>
  173. </plugin>
  174. </plugins>
  175. </build>
  176. </project>