pom.xml 10 KB

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