pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. </dependencies>
  73. <build>
  74. <plugins>
  75. <plugin>
  76. <groupId>org.apache.maven.plugins</groupId>
  77. <artifactId>maven-compiler-plugin</artifactId>
  78. <configuration>
  79. <source>1.8</source>
  80. <target>1.8</target>
  81. </configuration>
  82. </plugin>
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-shade-plugin</artifactId>
  86. <version>3.1.0</version>
  87. <executions>
  88. <execution>
  89. <phase>package</phase>
  90. <goals>
  91. <goal>shade</goal>
  92. </goals>
  93. <configuration>
  94. <filters>
  95. <filter>
  96. <artifact>*:*</artifact>
  97. <excludes>
  98. <exclude>META-INF/*.SF</exclude>
  99. <exclude>META-INF/*.DSA</exclude>
  100. <exclude>META-INF/*.RSA</exclude>
  101. </excludes>
  102. </filter>
  103. </filters>
  104. <transformers>
  105. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  106. <resource>jasperreports_extension.properties</resource>
  107. </transformer>
  108. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  109. <resource>META-INF/spring.schemas</resource>
  110. </transformer>
  111. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  112. <resource>META-INF/spring.handlers</resource>
  113. </transformer>
  114. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  115. <manifestEntries>
  116. <Main-Class>com.leanwo.report.server.ReportServerApp</Main-Class>
  117. </manifestEntries>
  118. </transformer>
  119. </transformers>
  120. <createDependencyReducedPom>false</createDependencyReducedPom>
  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}/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-bat</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}/
  159. </outputDirectory>
  160. <resources>
  161. <resource>
  162. <directory>config/</directory>
  163. <includes>
  164. <include>*.bat</include>
  165. </includes>
  166. </resource>
  167. </resources>
  168. </configuration>
  169. </execution>
  170. </executions>
  171. </plugin>
  172. </plugins>
  173. </build>
  174. </project>