pom.xml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.yihu.jw</groupId>
  8. <artifactId>wlyy-parent-pom</artifactId>
  9. <version>2.0.0</version>
  10. <relativePath>../../wlyy-parent-pom/pom.xml</relativePath>
  11. </parent>
  12. <groupId>com.yihu.jw</groupId>
  13. <artifactId>svr-cloud-transfor</artifactId>
  14. <packaging>jar</packaging>
  15. <version>${parent.version}</version>
  16. <dependencies>
  17. <!-- 支持Tomcat启动 -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-web</artifactId>
  21. <exclusions>
  22. <exclusion>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-tomcat</artifactId>
  25. </exclusion>
  26. </exclusions>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-tomcat</artifactId>
  31. <!-- <scope>provided</scope>-->
  32. </dependency>
  33. <dependency>
  34. <groupId>javax.servlet</groupId>
  35. <artifactId>javax.servlet-api</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.tomcat.embed</groupId>
  39. <artifactId>tomcat-embed-jasper</artifactId>
  40. </dependency>
  41. <!-- 支持Tomcat启动 -->
  42. <dependency>
  43. <groupId>com.alibaba</groupId>
  44. <artifactId>fastjson</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.yihu.jw</groupId>
  48. <artifactId>swagger-starter</artifactId>
  49. <version>2.0.0</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.yihu</groupId>
  53. <artifactId>mysql-starter</artifactId>
  54. <version>2.0.0</version>
  55. <exclusions>
  56. <exclusion>
  57. <groupId>org.apache.tomcat</groupId>
  58. <artifactId>tomcat-jdbc</artifactId>
  59. </exclusion>
  60. </exclusions>
  61. </dependency>
  62. <!-- SPRINGSIDE -->
  63. <dependency>
  64. <groupId>org.springside</groupId>
  65. <artifactId>springside-core</artifactId>
  66. <version>4.2.3-GA</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.security</groupId>
  70. <artifactId>spring-security-core</artifactId>
  71. <version>RELEASE</version>
  72. <scope>compile</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.tencentcloudapi</groupId>
  76. <artifactId>tencentcloud-sdk-java</artifactId>
  77. <version>3.1.272</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.bouncycastle</groupId>
  81. <artifactId>bcprov-jdk15on</artifactId>
  82. <version>1.68</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.github.wechatpay-apiv3</groupId>
  86. <artifactId>wechatpay-java</artifactId>
  87. <version>0.2.15</version>
  88. </dependency>
  89. </dependencies>
  90. <build>
  91. <finalName>svr-cloud-transfor</finalName>
  92. <plugins>
  93. <plugin>
  94. <groupId>org.apache.maven.plugins</groupId>
  95. <artifactId>maven-jar-plugin</artifactId>
  96. <configuration>
  97. <archive>
  98. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  99. <addMavenDescriptor>false</addMavenDescriptor>
  100. <manifest>
  101. <!-- 是否要把第三方jar加入到类构建路径 -->
  102. <addClasspath>true</addClasspath>
  103. <!-- 外部依赖jar包的最终位置 -->
  104. <classpathPrefix>lib/</classpathPrefix>
  105. <mainClass>com.yihu.SvrCloudTransforApplication</mainClass>
  106. </manifest>
  107. </archive>
  108. </configuration>
  109. </plugin>
  110. <!--拷贝依赖到jar外面的lib目录-->
  111. <plugin>
  112. <groupId>org.apache.maven.plugins</groupId>
  113. <artifactId>maven-dependency-plugin</artifactId>
  114. <executions>
  115. <execution>
  116. <id>copy-lib</id>
  117. <phase>package</phase>
  118. <goals>
  119. <goal>copy-dependencies</goal>
  120. </goals>
  121. <configuration>
  122. <!-- 依赖包输出目录,将来不打进jar包里 -->
  123. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  124. <excludeTransitive>false</excludeTransitive>
  125. <stripVersion>false</stripVersion>
  126. <includeScope>runtime</includeScope>
  127. </configuration>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. <!--指定配置文件,将resources打成外部resource-->
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-jar-plugin</artifactId>
  135. <configuration>
  136. <archive>
  137. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  138. <manifestEntries>
  139. <Class-Path>resources/</Class-Path>
  140. </manifestEntries>
  141. </archive>
  142. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  143. <excludes>
  144. <exclude>**/*.yml</exclude>
  145. <exclude>**/*.xml</exclude>
  146. </excludes>
  147. </configuration>
  148. </plugin>
  149. <!-- 拷贝资源文件 外面的resource目录-->
  150. <plugin>
  151. <artifactId>maven-resources-plugin</artifactId>
  152. <executions>
  153. <execution>
  154. <id>copy-dependencies</id>
  155. <phase>package</phase>
  156. <goals>
  157. <goal>copy-resources</goal>
  158. </goals>
  159. <configuration>
  160. <!-- 资源文件输出目录 -->
  161. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  162. <resources>
  163. <resource>
  164. <directory>src/main/resources</directory>
  165. </resource>
  166. </resources>
  167. </configuration>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. </plugins>
  172. </build>
  173. </project>