pom.xml 8.5 KB

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