pom.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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>info.aspirecn.rdc</groupId>
  6. <artifactId>aspirecloud-starter-parent</artifactId>
  7. <version>5.0.3</version>
  8. </parent>
  9. <artifactId>iov-sjjh-servicenode-supplier-10000033</artifactId>
  10. <version>1.2.12.1</version>
  11. <name>iov-sjjh-servicenode-supplier-10000033</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. </dependency>
  30. <dependency>
  31. <groupId>io.springfox</groupId>
  32. <artifactId>springfox-swagger-ui</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-devtools</artifactId>
  37. <optional>true</optional>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework.cloud</groupId>
  41. <artifactId>spring-cloud-config-client</artifactId>
  42. </dependency>
  43. <!-- aspire maven私服 -->
  44. <dependency>
  45. <groupId>info.aspirecn.rdc</groupId>
  46. <artifactId>aspirecloud-commons-sleuthlog-starter</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>info.aspirecn.rdc</groupId>
  50. <artifactId>aspirecloud-commons-errorlog-starter</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.squareup.okhttp3</groupId>
  54. <artifactId>okhttp</artifactId>
  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>openapi.sdk</groupId>
  67. <artifactId>openapi-sdk</artifactId>
  68. <version>6.0</version>
  69. <scope>system</scope>
  70. <systemPath>${project.basedir}/src/main/resources/lib/openapi-sdk-6.0.jar</systemPath>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <plugins>
  75. <plugin>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-maven-plugin</artifactId>
  78. <configuration>
  79. <includes>
  80. <include>
  81. <groupId>info.aspirecn.iov.sjjh</groupId>
  82. <artifactId>iov-sjjh-commons-lang</artifactId>
  83. </include>
  84. <include>
  85. <groupId>openapi.sdk</groupId>
  86. <artifactId>openapi-sdk</artifactId>
  87. </include>
  88. </includes>
  89. </configuration>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-jar-plugin</artifactId>
  94. <configuration>
  95. <archive>
  96. <manifest>
  97. <addClasspath>true</addClasspath>
  98. <classpathPrefix>lib/</classpathPrefix>
  99. </manifest>
  100. </archive>
  101. </configuration>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.apache.maven.plugins</groupId>
  105. <artifactId>maven-dependency-plugin</artifactId>
  106. <executions>
  107. <execution>
  108. <id>copy-dependencies</id>
  109. <phase>prepare-package</phase>
  110. <goals>
  111. <goal>copy-dependencies</goal>
  112. </goals>
  113. <configuration>
  114. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  115. <excludeGroupIds>
  116. info.aspirecn.iov.sjjh
  117. </excludeGroupIds>
  118. </configuration>
  119. </execution>
  120. <execution>
  121. <id>copy</id>
  122. <phase>install</phase>
  123. <goals>
  124. <goal>copy-dependencies</goal>
  125. </goals>
  126. <configuration>
  127. <outputDirectory>
  128. ${project.build.directory}/lib
  129. </outputDirectory>
  130. <excludeGroupIds>
  131. info.aspirecn.iov.sjjh
  132. </excludeGroupIds>
  133. </configuration>
  134. </execution>
  135. </executions>
  136. </plugin>
  137. <plugin>
  138. <groupId>org.apache.maven.plugins</groupId>
  139. <artifactId>maven-resources-plugin</artifactId>
  140. <executions>
  141. <execution>
  142. <id>default-resources</id>
  143. <phase>validate</phase>
  144. <goals>
  145. <goal>copy-resources</goal>
  146. </goals>
  147. <configuration>
  148. <outputDirectory>target/classes</outputDirectory>
  149. <useDefaultDelimiters>false</useDefaultDelimiters>
  150. <delimiters>
  151. <delimiter>@</delimiter>
  152. </delimiters>
  153. <resources>
  154. <resource>
  155. <directory>src/main/resources/config</directory>
  156. <targetPath>config</targetPath>
  157. <filtering>true</filtering>
  158. <includes>
  159. <include>**</include>
  160. </includes>
  161. </resource>
  162. <resource>
  163. <directory>src/main/resources/docker</directory>
  164. <targetPath>docker</targetPath>
  165. <filtering>true</filtering>
  166. <includes>
  167. <include>**</include>
  168. </includes>
  169. </resource>
  170. </resources>
  171. </configuration>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. <plugin>
  176. <groupId>com.spotify</groupId>
  177. <artifactId>docker-maven-plugin</artifactId>
  178. <version>1.2.0</version>
  179. <configuration>
  180. <!-- 设置Docker 镜像名称 -->
  181. <imageName>hub.i139.cn/iov-sjjh/${project.artifactId}:${project.version}</imageName>
  182. <!-- 设置Dockerfile存放目录地址 -->
  183. <dockerDirectory>${project.basedir}/src/main/resources/docker</dockerDirectory>
  184. <resources>
  185. <resource>
  186. <targetPath>/</targetPath>
  187. <directory>${project.build.directory}</directory>
  188. <include>${project.build.finalName}.jar</include>
  189. </resource>
  190. </resources>
  191. <!-- 设置和setting.xml中的servers对应的server,里面存放了docker hub仓库的用户名、密码 -->
  192. <serverId>docker-hub</serverId>
  193. <!-- 设置docker hub仓库地址 -->
  194. <registryUrl>https://hub.i139.cn</registryUrl>
  195. <!-- 设置docker remote API地址 -->
  196. <!--<dockerHost>http://docker-in-docker.rdc-plugin:2375</dockerHost>-->
  197. </configuration>
  198. </plugin>
  199. </plugins>
  200. </build>
  201. </project>