pom.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. <dependency>
  46. <groupId>org.apache.commons</groupId>
  47. <artifactId>commons-exec</artifactId>
  48. <version>1.3</version>
  49. </dependency>
  50. </dependencies>
  51. <build>
  52. <plugins>
  53. <plugin>
  54. <groupId>org.apache.maven.plugins</groupId>
  55. <artifactId>maven-compiler-plugin</artifactId>
  56. <configuration>
  57. <source>1.8</source>
  58. <target>1.8</target>
  59. </configuration>
  60. </plugin>
  61. <plugin>
  62. <groupId>org.apache.maven.plugins</groupId>
  63. <artifactId>maven-shade-plugin</artifactId>
  64. <version>3.1.0</version>
  65. <executions>
  66. <execution>
  67. <phase>package</phase>
  68. <goals>
  69. <goal>shade</goal>
  70. </goals>
  71. <configuration>
  72. <filters>
  73. <filter>
  74. <artifact>*:*</artifact>
  75. <excludes>
  76. <exclude>META-INF/*.SF</exclude>
  77. <exclude>META-INF/*.DSA</exclude>
  78. <exclude>META-INF/*.RSA</exclude>
  79. </excludes>
  80. </filter>
  81. </filters>
  82. <transformers>
  83. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  84. <resource>jasperreports_extension.properties</resource>
  85. </transformer>
  86. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  87. <resource>META-INF/spring.schemas</resource>
  88. </transformer>
  89. <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  90. <resource>META-INF/spring.handlers</resource>
  91. </transformer>
  92. <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  93. <manifestEntries>
  94. <Main-Class>com.leanwo.report.server.ReportServerApp</Main-Class>
  95. </manifestEntries>
  96. </transformer>
  97. </transformers>
  98. <createDependencyReducedPom>false</createDependencyReducedPom>
  99. </configuration>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-resources-plugin</artifactId>
  106. <version>3.0.2</version>
  107. <executions>
  108. <execution>
  109. <id>copy-resources-config</id>
  110. <phase>package</phase>
  111. <goals>
  112. <goal>copy-resources</goal>
  113. </goals>
  114. <configuration>
  115. <encoding>UTF-8</encoding>
  116. <outputDirectory>${project.build.directory}/config
  117. </outputDirectory>
  118. <resources>
  119. <resource>
  120. <directory>config/</directory>
  121. <excludes>
  122. <exclude>*.bat</exclude>
  123. </excludes>
  124. </resource>
  125. </resources>
  126. </configuration>
  127. </execution>
  128. <execution>
  129. <id>copy-resources-bat</id>
  130. <phase>package</phase>
  131. <goals>
  132. <goal>copy-resources</goal>
  133. </goals>
  134. <configuration>
  135. <encoding>UTF-8</encoding>
  136. <outputDirectory>${project.build.directory}/
  137. </outputDirectory>
  138. <resources>
  139. <resource>
  140. <directory>config/</directory>
  141. <includes>
  142. <include>*.bat</include>
  143. </includes>
  144. </resource>
  145. </resources>
  146. </configuration>
  147. </execution>
  148. </executions>
  149. </plugin>
  150. </plugins>
  151. </build>
  152. </project>