pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.0.6.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>info.aspirecn.iov.sjjh</groupId>
  12. <artifactId>iov-sjjh-servicenode-supplier-10000027</artifactId>
  13. <version>1.3.7</version>
  14. <name>iov-sjjh-servicenode-supplier-10000027</name>
  15. <description>iov-sjjh-servicenode-supplier-10000027</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.springframework.boot</groupId>
  22. <artifactId>spring-boot-starter-web</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework.cloud</groupId>
  26. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>com.squareup.okhttp3</groupId>
  30. <artifactId>okhttp</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.alibaba</groupId>
  34. <artifactId>fastjson</artifactId>
  35. <version>1.2.70</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.google.code.gson</groupId>
  39. <artifactId>gson</artifactId>
  40. </dependency>
  41. <!--链路日志-->
  42. <dependency>
  43. <groupId>info.aspirecn.rdc</groupId>
  44. <artifactId>aspirecloud-commons-sleuthlog-starter</artifactId>
  45. <version>5.0.1</version>
  46. </dependency>
  47. <!--错误日志-->
  48. <dependency>
  49. <groupId>info.aspirecn.rdc</groupId>
  50. <artifactId>aspirecloud-commons-errorlog-starter</artifactId>
  51. <version>5.0.2</version>
  52. </dependency>
  53. <!--常量-->
  54. <dependency>
  55. <groupId>info.aspirecn.iov.sjjh</groupId>
  56. <artifactId>iov-sjjh-commons-lang</artifactId>
  57. <version>1.0.0</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>io.springfox</groupId>
  61. <artifactId>springfox-swagger2</artifactId>
  62. <version>2.9.2</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>io.springfox</groupId>
  66. <artifactId>springfox-swagger-ui</artifactId>
  67. <version>2.9.2</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.cloud</groupId>
  71. <artifactId>spring-cloud-config-client</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.auth0</groupId>
  75. <artifactId>java-jwt</artifactId>
  76. <version>3.1.0</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>frictid.api</groupId>
  80. <artifactId>frictid-api</artifactId>
  81. <version>1.0.0</version>
  82. <scope>system</scope>
  83. <systemPath>${project.basedir}/src/main/resources/lib/frictidApi-1.0.0.jar</systemPath>
  84. </dependency>
  85. <dependency>
  86. <groupId>BJCACTID</groupId>
  87. <artifactId>BJCACTID</artifactId>
  88. <version>1.0.0</version>
  89. <scope>system</scope>
  90. <systemPath>${project.basedir}/src/main/resources/lib/BJCACTID.jar</systemPath>
  91. </dependency>
  92. <dependency>
  93. <groupId>SVSClient</groupId>
  94. <artifactId>SVSClient</artifactId>
  95. <version>1.0.0</version>
  96. <scope>system</scope>
  97. <systemPath>${project.basedir}/src/main/resources/lib/SVSClient.jar</systemPath>
  98. </dependency>
  99. <dependency>
  100. <groupId>commons.httpclient</groupId>
  101. <artifactId>commons-httpclient</artifactId>
  102. <version>3.1</version>
  103. <scope>system</scope>
  104. <systemPath>${project.basedir}/src/main/resources/lib/commons-httpclient-3.1.jar</systemPath>
  105. </dependency>
  106. <dependency>
  107. <groupId>commons.logging</groupId>
  108. <artifactId>commons-logging</artifactId>
  109. <version>1.1.1</version>
  110. <scope>system</scope>
  111. <systemPath>${project.basedir}/src/main/resources/lib/commons-logging-1.1.1.jar</systemPath>
  112. </dependency>
  113. <dependency>
  114. <groupId>BJCA.LOG</groupId>
  115. <artifactId>BJCA-LOG</artifactId>
  116. <version>1.1.1</version>
  117. <scope>system</scope>
  118. <systemPath>${project.basedir}/src/main/resources/lib/BJCA_LOG.jar</systemPath>
  119. </dependency>
  120. </dependencies>
  121. <dependencyManagement>
  122. <dependencies>
  123. <dependency>
  124. <groupId>org.springframework.cloud</groupId>
  125. <artifactId>spring-cloud-dependencies</artifactId>
  126. <version>Finchley.SR2</version>
  127. <type>pom</type>
  128. <scope>import</scope>
  129. </dependency>
  130. </dependencies>
  131. </dependencyManagement>
  132. <build>
  133. <plugins>
  134. <plugin>
  135. <groupId>org.springframework.boot</groupId>
  136. <artifactId>spring-boot-maven-plugin</artifactId>
  137. <configuration>
  138. <includeSystemScope>true</includeSystemScope>
  139. <includes>
  140. <include>
  141. <groupId>frictid.api</groupId>
  142. <artifactId>frictid-api</artifactId>
  143. </include>
  144. <include>
  145. <groupId>BJCACTID</groupId>
  146. <artifactId>BJCACTID</artifactId>
  147. </include>
  148. <include>
  149. <groupId>SVSClient</groupId>
  150. <artifactId>SVSClient</artifactId>
  151. </include>
  152. <include>
  153. <groupId>commons.httpclient</groupId>
  154. <artifactId>commons-httpclient</artifactId>
  155. </include>
  156. <include>
  157. <groupId>commons.logging</groupId>
  158. <artifactId>commons-logging</artifactId>
  159. </include>
  160. <include>
  161. <groupId>BJCA.LOG</groupId>
  162. <artifactId>BJCA-LOG</artifactId>
  163. </include>
  164. <include>
  165. <groupId>info.aspirecn.iov.sjjh</groupId>
  166. <artifactId>iov-sjjh-commons-lang</artifactId>
  167. </include>
  168. </includes>
  169. </configuration>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-jar-plugin</artifactId>
  174. <configuration>
  175. <archive>
  176. <manifest>
  177. <addClasspath>true</addClasspath>
  178. <classpathPrefix>lib/</classpathPrefix>
  179. </manifest>
  180. </archive>
  181. </configuration>
  182. </plugin>
  183. <plugin>
  184. <groupId>org.apache.maven.plugins</groupId>
  185. <artifactId>maven-dependency-plugin</artifactId>
  186. <executions>
  187. <execution>
  188. <id>copy-dependencies</id>
  189. <phase>prepare-package</phase>
  190. <goals>
  191. <goal>copy-dependencies</goal>
  192. </goals>
  193. <configuration>
  194. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  195. <excludeGroupIds>
  196. info.aspirecn.iov.sjjh
  197. </excludeGroupIds>
  198. </configuration>
  199. </execution>
  200. <execution>
  201. <id>copy</id>
  202. <phase>install</phase>
  203. <goals>
  204. <goal>copy-dependencies</goal>
  205. </goals>
  206. <configuration>
  207. <outputDirectory>
  208. ${project.build.directory}/lib
  209. </outputDirectory>
  210. <excludeGroupIds>
  211. info.aspirecn.iov.sjjh
  212. </excludeGroupIds>
  213. </configuration>
  214. </execution>
  215. </executions>
  216. </plugin>
  217. <plugin>
  218. <groupId>org.apache.maven.plugins</groupId>
  219. <artifactId>maven-resources-plugin</artifactId>
  220. <executions>
  221. <execution>
  222. <id>default-resources</id>
  223. <phase>validate</phase>
  224. <goals>
  225. <goal>copy-resources</goal>
  226. </goals>
  227. <configuration>
  228. <outputDirectory>target/classes</outputDirectory>
  229. <useDefaultDelimiters>false</useDefaultDelimiters>
  230. <delimiters>
  231. <delimiter>@</delimiter>
  232. </delimiters>
  233. <resources>
  234. <resource>
  235. <directory>src/main/resources</directory>
  236. <filtering>true</filtering>
  237. <includes>
  238. <include>**</include>
  239. </includes>
  240. </resource>
  241. </resources>
  242. </configuration>
  243. </execution>
  244. </executions>
  245. </plugin>
  246. <plugin>
  247. <groupId>com.spotify</groupId>
  248. <artifactId>docker-maven-plugin</artifactId>
  249. <version>1.2.0</version>
  250. <configuration>
  251. <!-- 设置Docker 镜像名称 -->
  252. <imageName>hub.i139.cn/iov-sjjh/${project.artifactId}:${project.version}</imageName>
  253. <!-- 设置Dockerfile存放目录地址 -->
  254. <dockerDirectory>${project.basedir}/src/main/resources/docker</dockerDirectory>
  255. <resources>
  256. <resource>
  257. <targetPath>/</targetPath>
  258. <directory>${project.build.directory}</directory>
  259. <include>${project.build.finalName}.jar</include>
  260. </resource>
  261. </resources>
  262. <!-- 设置和setting.xml中的servers对应的server,里面存放了docker hub仓库的用户名、密码 -->
  263. <serverId>docker-hub</serverId>
  264. <!-- 设置docker hub仓库地址 -->
  265. <registryUrl>https://hub.i139.cn</registryUrl>
  266. <!-- 设置docker remote API地址 -->
  267. <!--<dockerHost>http://docker-in-docker.rdc-plugin:2375</dockerHost>-->
  268. </configuration>
  269. </plugin>
  270. </plugins>
  271. </build>
  272. </project>