pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.2.2.RELEASE</version>
  9. </parent>
  10. <groupId>info.aspirecn.iov.yysj</groupId>
  11. <artifactId>cloud-yysj-check-info</artifactId>
  12. <version>1.1.8</version>
  13. <packaging>jar</packaging>
  14. <name>cloud-yysj-infocheck</name>
  15. <url>http://maven.apache.org</url>
  16. <properties>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>info.aspirecn.cloud.yysj</groupId>
  22. <artifactId>cloud-yysj-commons-lang</artifactId>
  23. <version>1.0.0</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-starter-kubernetes-config</artifactId>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-actuator</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>info.aspirecn.iov.yysj</groupId>
  35. <artifactId>cloud-yysj-servicenode-paramtransfer-interface</artifactId>
  36. <version>1.0.0</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-data-redis</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>commons-codec</groupId>
  44. <artifactId>commons-codec</artifactId>
  45. <version>1.11</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-tomcat</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.cloud</groupId>
  53. <artifactId>spring-cloud-starter-zuul</artifactId>
  54. <version>1.4.5.RELEASE</version>
  55. </dependency>
  56. <!-- <dependency>
  57. <groupId>org.springframework.cloud</groupId>
  58. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  59. </dependency>-->
  60. <dependency>
  61. <groupId>org.springframework.cloud</groupId>
  62. <artifactId>spring-cloud-starter-sleuth</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-devtools</artifactId>
  67. <optional>true</optional>
  68. </dependency>
  69. <dependency>
  70. <groupId>commons-io</groupId>
  71. <artifactId>commons-io</artifactId>
  72. <version>2.6</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-configuration-processor</artifactId>
  77. <optional>true</optional>
  78. </dependency>
  79. <dependency>
  80. <groupId>net.logstash.logback</groupId>
  81. <artifactId>logstash-logback-encoder</artifactId>
  82. <version>5.0</version>
  83. </dependency>
  84. <!-- <dependency>
  85. <groupId>net.rakugakibox.spring.boot</groupId>
  86. <artifactId>logback-access-spring-boot-starter</artifactId>
  87. <version>2.7.1</version>
  88. </dependency>-->
  89. <dependency>
  90. <groupId>org.apache.commons</groupId>
  91. <artifactId>commons-lang3</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.modelmapper</groupId>
  95. <artifactId>modelmapper</artifactId>
  96. <version>2.3.0</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.google.code.gson</groupId>
  100. <artifactId>gson</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>io.jsonwebtoken</groupId>
  104. <artifactId>jjwt</artifactId>
  105. <version>0.9.1</version>
  106. </dependency>
  107. </dependencies>
  108. <dependencyManagement>
  109. <dependencies>
  110. <dependency>
  111. <groupId>org.springframework.cloud</groupId>
  112. <artifactId>spring-cloud-dependencies</artifactId>
  113. <version>Hoxton.RELEASE</version>
  114. <type>pom</type>
  115. <scope>import</scope>
  116. </dependency>
  117. </dependencies>
  118. </dependencyManagement>
  119. <build>
  120. <plugins>
  121. <!--设置应用 Main 参数启动依赖查找的地址指向外部 lib 文件夹-->
  122. <plugin>
  123. <groupId>org.apache.maven.plugins</groupId>
  124. <artifactId>maven-jar-plugin</artifactId>
  125. <configuration>
  126. <archive>
  127. <manifest>
  128. <addClasspath>true</addClasspath>
  129. <classpathPrefix>lib/</classpathPrefix>
  130. </manifest>
  131. </archive>
  132. </configuration>
  133. </plugin>
  134. <!--设置 SpringBoot 打包插件不包含任何 Jar 依赖包-->
  135. <plugin>
  136. <groupId>org.springframework.boot</groupId>
  137. <artifactId>spring-boot-maven-plugin</artifactId>
  138. <configuration>
  139. <includes>
  140. <include>
  141. <groupId>info.aspirecn.iov.yysj</groupId>
  142. <artifactId>cloud-yysj-servicenode-paramtransfer-interface</artifactId>
  143. </include>
  144. <include>
  145. <groupId>info.aspirecn.cloud.yysj</groupId>
  146. <artifactId>cloud-yysj-commons-lang</artifactId>
  147. </include>
  148. </includes>
  149. </configuration>
  150. </plugin>
  151. <!--设置将 lib 拷贝到应用 Jar 外面-->
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-dependency-plugin</artifactId>
  155. <executions>
  156. <execution>
  157. <id>copy-dependencies</id>
  158. <phase>prepare-package</phase>
  159. <goals>
  160. <goal>copy-dependencies</goal>
  161. </goals>
  162. <configuration>
  163. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  164. <excludeGroupIds>
  165. info.aspirecn.cloud.yysj
  166. </excludeGroupIds>
  167. </configuration>
  168. </execution>
  169. <execution>
  170. <id>copy</id>
  171. <phase>install</phase>
  172. <goals>
  173. <goal>copy-dependencies</goal>
  174. </goals>
  175. <configuration>
  176. <outputDirectory>
  177. ${project.build.directory}/lib
  178. </outputDirectory>
  179. <excludeGroupIds>
  180. info.aspirecn.cloud.yysj
  181. </excludeGroupIds>
  182. </configuration>
  183. </execution>
  184. </executions>
  185. </plugin>
  186. </plugins>
  187. </build>
  188. </project>