pom.xml 9.1 KB

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