pom.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.2.2.RELEASE</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>info.aspirecn.iov.sjjh</groupId>
  13. <artifactId>iov-sjjh-servicenode-supplier-10000002</artifactId>
  14. <version>1.3.5</version>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-starter-web</artifactId>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.springframework.cloud</groupId>
  22. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.squareup.okhttp3</groupId>
  26. <artifactId>okhttp</artifactId>
  27. </dependency>
  28. <!--链路日志-->
  29. <dependency>
  30. <groupId>info.aspirecn.rdc</groupId>
  31. <artifactId>aspirecloud-commons-sleuthlog-starter</artifactId>
  32. <version>5.0.1</version>
  33. </dependency>
  34. <!--错误日志-->
  35. <dependency>
  36. <groupId>info.aspirecn.rdc</groupId>
  37. <artifactId>aspirecloud-commons-errorlog-starter</artifactId>
  38. <version>5.0.2</version>
  39. </dependency>
  40. <!--常量-->
  41. <dependency>
  42. <groupId>info.aspirecn.iov.sjjh</groupId>
  43. <artifactId>iov-sjjh-commons-lang</artifactId>
  44. <version>1.0.0</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.alibaba</groupId>
  48. <artifactId>fastjson</artifactId>
  49. <version>1.2.70</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>info.aspirecn.iov.sjjh</groupId>
  53. <artifactId>iov-sjjh-servicenode-supplier-10000002-interface</artifactId>
  54. <version>1.0.0</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework.cloud</groupId>
  58. <artifactId>spring-cloud-config-client</artifactId>
  59. </dependency>
  60. </dependencies>
  61. <dependencyManagement>
  62. <dependencies>
  63. <dependency>
  64. <groupId>org.springframework.cloud</groupId>
  65. <artifactId>spring-cloud-dependencies</artifactId>
  66. <version>Hoxton.RELEASE</version>
  67. <type>pom</type>
  68. <scope>import</scope>
  69. </dependency>
  70. </dependencies>
  71. </dependencyManagement>
  72. <build>
  73. <plugins>
  74. <plugin>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-maven-plugin</artifactId>
  77. <configuration>
  78. <includes>
  79. <include>
  80. <groupId>info.aspirecn.iov.sjjh</groupId>
  81. <artifactId>iov-sjjh-servicenode-supplier-10000002-interface</artifactId>
  82. </include>
  83. <include>
  84. <groupId>info.aspirecn.iov.sjjh</groupId>
  85. <artifactId>iov-sjjh-commons-lang</artifactId>
  86. </include>
  87. </includes>
  88. </configuration>
  89. </plugin>
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-jar-plugin</artifactId>
  93. <configuration>
  94. <archive>
  95. <manifest>
  96. <addClasspath>true</addClasspath>
  97. <classpathPrefix>lib/</classpathPrefix>
  98. </manifest>
  99. </archive>
  100. </configuration>
  101. </plugin>
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-dependency-plugin</artifactId>
  105. <executions>
  106. <execution>
  107. <id>copy-dependencies</id>
  108. <phase>prepare-package</phase>
  109. <goals>
  110. <goal>copy-dependencies</goal>
  111. </goals>
  112. <configuration>
  113. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  114. <excludeGroupIds>
  115. info.aspirecn.iov.sjjh
  116. </excludeGroupIds>
  117. </configuration>
  118. </execution>
  119. <execution>
  120. <id>copy</id>
  121. <phase>install</phase>
  122. <goals>
  123. <goal>copy-dependencies</goal>
  124. </goals>
  125. <configuration>
  126. <outputDirectory>
  127. ${project.build.directory}/lib
  128. </outputDirectory>
  129. <excludeGroupIds>
  130. info.aspirecn.iov.sjjh
  131. </excludeGroupIds>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-resources-plugin</artifactId>
  139. <executions>
  140. <execution>
  141. <id>default-resources</id>
  142. <phase>validate</phase>
  143. <goals>
  144. <goal>copy-resources</goal>
  145. </goals>
  146. <configuration>
  147. <outputDirectory>target/classes</outputDirectory>
  148. <useDefaultDelimiters>false</useDefaultDelimiters>
  149. <delimiters>
  150. <delimiter>@</delimiter>
  151. </delimiters>
  152. <resources>
  153. <resource>
  154. <directory>src/main/resources/config</directory>
  155. <targetPath>config</targetPath>
  156. <filtering>true</filtering>
  157. <includes>
  158. <include>**</include>
  159. </includes>
  160. </resource>
  161. <resource>
  162. <directory>src/main/resources/docker</directory>
  163. <targetPath>docker</targetPath>
  164. <filtering>true</filtering>
  165. <includes>
  166. <include>**</include>
  167. </includes>
  168. </resource>
  169. </resources>
  170. </configuration>
  171. </execution>
  172. </executions>
  173. </plugin>
  174. <plugin>
  175. <groupId>com.spotify</groupId>
  176. <artifactId>docker-maven-plugin</artifactId>
  177. <version>1.2.0</version>
  178. <configuration>
  179. <!-- 设置Docker 镜像名称 -->
  180. <imageName>hub.i139.cn/iov-sjjh/${project.artifactId}:${project.version}</imageName>
  181. <!-- 设置Dockerfile存放目录地址 -->
  182. <dockerDirectory>${project.basedir}/src/main/resources/docker</dockerDirectory>
  183. <resources>
  184. <resource>
  185. <targetPath>/</targetPath>
  186. <directory>${project.build.directory}</directory>
  187. <include>${project.build.finalName}.jar</include>
  188. </resource>
  189. </resources>
  190. <!-- 设置和setting.xml中的servers对应的server,里面存放了docker hub仓库的用户名、密码 -->
  191. <serverId>docker-hub</serverId>
  192. <!-- 设置docker hub仓库地址 -->
  193. <registryUrl>https://hub.i139.cn</registryUrl>
  194. <!-- 设置docker remote API地址 -->
  195. <!--<dockerHost>http://docker-in-docker.rdc-plugin:2375</dockerHost>-->
  196. </configuration>
  197. </plugin>
  198. </plugins>
  199. </build>
  200. </project>