pom.xml 8.9 KB

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