pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  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>1.5.9.RELEASE</version>
  10. </parent>
  11. <groupId>com.yihu.jw</groupId>
  12. <artifactId>wlyy-parent-pom</artifactId>
  13. <version>2.0.0</version>
  14. <packaging>pom</packaging>
  15. <developers>
  16. <developer>
  17. <id>cwd</id>
  18. <name>陈伟达</name>
  19. <email>494679975@qq.com</email>
  20. <organizationUrl>localhost</organizationUrl>
  21. <roles>
  22. <role>Project programmer</role>
  23. </roles>
  24. </developer>
  25. </developers>
  26. <!--deploy 的时候发布到这个服务器-->
  27. <distributionManagement>
  28. <repository>
  29. <id>jkzlRepositories</id>
  30. <name>jkzlRepositories</name>
  31. <url>http://172.19.103.43:8081/nexus/content/repositories/jkzlRepositories/</url>
  32. </repository>
  33. </distributionManagement>
  34. <!-- 私有仓库 -->
  35. <repositories>
  36. <repository>
  37. <id>public</id>
  38. <name>public</name>
  39. <url>http://172.19.103.43:8081/nexus/content/groups/public/</url>
  40. <releases>
  41. <enabled>true</enabled>
  42. </releases>
  43. <snapshots>
  44. <enabled>false</enabled>
  45. </snapshots>
  46. </repository>
  47. </repositories>
  48. <modules>
  49. <!-- 基础组件服务 -->
  50. <module>../server/svr-configuration</module> <!--配置服务-->
  51. <module>../server/svr-discovery</module><!--发现服务-->
  52. <module>../server/svr-config-service</module> <!--apollo配置服务-->
  53. <module>../server/svr-config-admin</module> <!--apollo配置管理-->
  54. <module>../server/svr-portal</module> <!--apollo后台页面-->
  55. <module>../server/svr-authentication</module> <!-- 认证服务 -->
  56. <!--<module>../server/svr-dashboard</module>--><!--监控服务-->
  57. <module>../server/svr-zipkin</module> <!--分布式追踪服务-->
  58. <!-- 网关服务 -->
  59. <module>../gateway/ag-basic</module> <!-- web网关 -->
  60. <!--业务微服务-->
  61. <module>../svr/svr-base</module><!-- 基础微服务 -->
  62. <module>../svr/svr-iot</module><!--物联网平台-->
  63. <!--<module>../svr/svr-wlyy</module>--> <!-- i健康微服务 -->
  64. <module>../svr/svr-wlyy-health-bank</module> <!-- 健康银行 -->
  65. <module>../svr/svr-wlyy-specialist</module> <!-- 专科医生 -->
  66. <!--<module>../svr/svr-manage</module>--> <!-- 后台管理系统 -->
  67. <module>../svr/svr-rehabilitation</module> <!--专科医生康复计划-->
  68. <!-- 应用 -->
  69. <module>../app/app-iot-server</module>
  70. <module>../app/public-health-server</module>
  71. </modules>
  72. <properties>
  73. <!-- Version start -->
  74. <version.wlyy-common>2.0.0</version.wlyy-common>
  75. <version.jackson>2.8.1</version.jackson>
  76. <verion.fastjson>1.2.17</verion.fastjson>
  77. <version.json>20160212</version.json>
  78. <version.net-json>2.4</version.net-json>
  79. <version.logback>1.2.3</version.logback>
  80. <version.quartz>2.3.0</version.quartz>
  81. <version.swagger>2.7.0</version.swagger>
  82. <version.swagger-ui>2.7.0</version.swagger-ui>
  83. <version.swagger-annotations>1.5.20</version.swagger-annotations>
  84. <version.springside>4.2.3-GA</version.springside>
  85. <version.zipkin>1.24.0</version.zipkin>
  86. <version.joda-time>2.8.2</version.joda-time>
  87. <version.yihu.admin>1.2.0</version.yihu.admin>
  88. <version.spring-boot-admin>1.5.7</version.spring-boot-admin>
  89. <version.zxing>3.2.0</version.zxing>
  90. <version.fastdfs>1.25</version.fastdfs>
  91. <version.poi>3.17</version.poi>
  92. <version.jxl>2.6.10</version.jxl>
  93. <version.apollo>1.1.0-RELEASE</version.apollo>
  94. <version.okhttp>3.4.1</version.okhttp>
  95. <!-- Version end -->
  96. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  97. <asciidoctor.maven.plugin.version>1.5.5</asciidoctor.maven.plugin.version>
  98. <asciidoctorj.version>1.5.5</asciidoctorj.version>
  99. <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
  100. </properties>
  101. <!-- 子配置不写版本默认继承父配置 -->
  102. <dependencyManagement>
  103. <dependencies>
  104. <!-- Spring Cloud -->
  105. <dependency>
  106. <groupId>org.springframework.cloud</groupId>
  107. <artifactId>spring-cloud-dependencies</artifactId>
  108. <version>Edgware.SR4</version>
  109. <type>pom</type>
  110. <scope>import</scope>
  111. </dependency>
  112. <!-- wlyy common -->
  113. <dependency>
  114. <groupId>com.yihu.jw</groupId>
  115. <artifactId>common-fegin</artifactId>
  116. <version>${version.wlyy-common}</version>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.yihu.jw</groupId>
  120. <artifactId>common-entity</artifactId>
  121. <version>${version.wlyy-common}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.yihu.jw</groupId>
  125. <artifactId>common-entity-es</artifactId>
  126. <version>${version.wlyy-common}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.yihu.jw</groupId>
  130. <artifactId>common-request-mapping</artifactId>
  131. <version>${version.wlyy-common}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.yihu.jw</groupId>
  135. <artifactId>common-exception</artifactId>
  136. <version>${version.wlyy-common}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.yihu.jw</groupId>
  140. <artifactId>common-rest-model</artifactId>
  141. <version>${version.wlyy-common}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.yihu.jw</groupId>
  145. <artifactId>common-rest-model-es</artifactId>
  146. <version>${version.wlyy-common}</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.yihu.jw</groupId>
  150. <artifactId>common-util</artifactId>
  151. <version>${version.wlyy-common}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>com.yihu.jw</groupId>
  155. <artifactId>common-web</artifactId>
  156. <version>${version.wlyy-common}</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.yihu.jw</groupId>
  160. <artifactId>common-tracer</artifactId>
  161. <version>${version.wlyy-common}</version>
  162. </dependency>
  163. <!-- Jkzl Starter -->
  164. <dependency>
  165. <groupId>com.yihu</groupId>
  166. <artifactId>swagger-starter</artifactId>
  167. <version>2.0.0</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>com.yihu</groupId>
  171. <artifactId>mysql-starter</artifactId>
  172. <version>2.0.0</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>com.yihu</groupId>
  176. <artifactId>fastdfs-starter</artifactId>
  177. <version>2.0.0</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>com.yihu</groupId>
  181. <artifactId>utils</artifactId> <!-- 此依赖包含大部分常用工具类 -->
  182. <version>2.0.0</version>
  183. </dependency>
  184. <!-- Alibaba -->
  185. <dependency>
  186. <groupId>com.alibaba</groupId>
  187. <artifactId>fastjson</artifactId>
  188. <version>${verion.fastjson}</version>
  189. </dependency>
  190. <!-- Json library -->
  191. <dependency>
  192. <groupId>org.json</groupId>
  193. <artifactId>json</artifactId>
  194. <version>${version.json}</version>
  195. </dependency>
  196. <!-- Net json library -->
  197. <dependency>
  198. <groupId>net.sf.json-lib</groupId>
  199. <artifactId>json-lib</artifactId>
  200. <version>${version.net-json}</version>
  201. </dependency>
  202. <!-- Log start -->
  203. <dependency>
  204. <groupId>ch.qos.logback</groupId>
  205. <artifactId>logback-classic</artifactId>
  206. <version>${version.logback}</version>
  207. </dependency>
  208. <dependency>
  209. <groupId>ch.qos.logback</groupId>
  210. <artifactId>logback-core</artifactId>
  211. <version>${version.logback}</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>ch.qos.logback</groupId>
  215. <artifactId>logback-access</artifactId>
  216. <version>${version.logback}</version>
  217. </dependency>
  218. <!-- Quartz start -->
  219. <dependency>
  220. <groupId>org.quartz-scheduler</groupId>
  221. <artifactId>quartz</artifactId>
  222. <version>${version.quartz}</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>org.quartz-scheduler</groupId>
  226. <artifactId>quartz-jobs</artifactId>
  227. <version>${version.quartz}</version>
  228. </dependency>
  229. <!-- Swagger ui -->
  230. <dependency>
  231. <groupId>io.springfox</groupId>
  232. <artifactId>springfox-swagger2</artifactId>
  233. <version>${version.swagger}</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>io.springfox</groupId>
  237. <artifactId>springfox-swagger-ui</artifactId>
  238. <version>${version.swagger-ui}</version>
  239. </dependency>
  240. <dependency>
  241. <groupId>io.swagger</groupId>
  242. <artifactId>swagger-annotations</artifactId>
  243. <version>${version.swagger-annotations}</version>
  244. </dependency>
  245. <!-- Springside -->
  246. <dependency>
  247. <groupId>org.springside</groupId>
  248. <artifactId>springside-core</artifactId>
  249. <version>${version.springside}</version>
  250. <classifier>GA</classifier>
  251. </dependency>
  252. <!-- poi xml导入导出工具 start-->
  253. <dependency>
  254. <groupId>org.apache.poi</groupId>
  255. <artifactId>poi</artifactId>
  256. <version>${version.poi}</version>
  257. <exclusions>
  258. <exclusion>
  259. <groupId>com.yihu.ehr</groupId>
  260. <artifactId>commons-util</artifactId>
  261. </exclusion>
  262. <exclusion>
  263. <groupId>org.apache.commons</groupId>
  264. <artifactId>commons-collections4</artifactId>
  265. </exclusion>
  266. </exclusions>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.apache.poi</groupId>
  270. <artifactId>poi-ooxml</artifactId>
  271. <version>${version.poi}</version>
  272. </dependency>
  273. <!-- xlsx 依赖这个包 -->
  274. <dependency>
  275. <groupId>org.apache.poi</groupId>
  276. <artifactId>poi-ooxml-schemas</artifactId>
  277. <version>${version.poi}</version>
  278. </dependency>
  279. <dependency>
  280. <groupId>net.sourceforge.jexcelapi</groupId>
  281. <artifactId>jxl</artifactId>
  282. <version>${version.jxl}</version>
  283. </dependency>
  284. <dependency>
  285. <groupId>com.squareup.okhttp3</groupId>
  286. <artifactId>okhttp</artifactId>
  287. <version>${version.okhttp}</version>
  288. </dependency>
  289. <!-- poi xml导入导出工具 end -->
  290. <!--apollo相关jar start -->
  291. <!--后期携程apollo spring-boot相关包做升级, wlyy2.0亦可做升级,直接依赖携程相关jar-->
  292. <dependency>
  293. <groupId>com.yihu.jkzl</groupId>
  294. <artifactId>apollo-biz</artifactId>
  295. <version>${version.apollo}</version>
  296. </dependency>
  297. <dependency>
  298. <groupId>com.yihu.jkzl</groupId>
  299. <artifactId>apollo-client</artifactId>
  300. <version>${version.apollo}</version>
  301. </dependency>
  302. <dependency>
  303. <groupId>com.yihu.jkzl</groupId>
  304. <artifactId>apollo-common</artifactId>
  305. <version>${version.apollo}</version>
  306. </dependency>
  307. <!--apollo相关jar end -->
  308. <!-- Zipkin 日志追踪 -->
  309. <!--<dependency>
  310. <groupId>io.zipkin.java</groupId>
  311. <artifactId>zipkin-server</artifactId>
  312. <version>${version.zipkin}</version>
  313. </dependency>
  314. <dependency>
  315. <groupId>io.zipkin.java</groupId>
  316. <artifactId>zipkin-autoconfigure-ui</artifactId>
  317. <version>${version.zipkin}</version>
  318. </dependency>
  319. <dependency>
  320. <groupId>io.zipkin.java</groupId>
  321. <artifactId>zipkin-autoconfigure-storage-elasticsearch-http</artifactId>
  322. <version>${version.zipkin}</version>
  323. </dependency>-->
  324. <!-- Scala -->
  325. <!--<dependency>
  326. <groupId>org.scala-lang</groupId>
  327. <artifactId>scala-library</artifactId>
  328. <version>${version.scala}</version>
  329. </dependency>
  330. <dependency>
  331. <groupId>org.scala-lang</groupId>
  332. <artifactId>scala-compiler</artifactId>
  333. <version>${version.scala}</version>
  334. </dependency>-->
  335. <!-- Joda -->
  336. <!--<dependency>
  337. <groupId>joda-time</groupId>
  338. <artifactId>joda-time</artifactId>
  339. <version>${version.joda-time}</version>
  340. </dependency>-->
  341. <!--服务器监监听-->
  342. <dependency>
  343. <groupId>com.yihu</groupId>
  344. <artifactId>admin-client-starter</artifactId>
  345. <version>${version.yihu.admin}</version>
  346. </dependency>
  347. <dependency>
  348. <groupId>com.yihu</groupId>
  349. <artifactId>admin-server-starter</artifactId>
  350. <version>${version.yihu.admin}</version>
  351. </dependency>
  352. <dependency>
  353. <groupId>com.yihu</groupId>
  354. <artifactId>admin-server-ui-starter</artifactId>
  355. <version>${version.yihu.admin}</version>
  356. </dependency>
  357. <dependency>
  358. <groupId>de.codecentric</groupId>
  359. <artifactId>spring-boot-admin-server</artifactId>
  360. <version>${version.spring-boot-admin}</version>
  361. </dependency>
  362. <dependency>
  363. <groupId>de.codecentric</groupId>
  364. <artifactId>spring-boot-admin-server-ui</artifactId>
  365. <version>${version.spring-boot-admin}</version>
  366. </dependency>
  367. <dependency>
  368. <groupId>de.codecentric</groupId>
  369. <artifactId>spring-boot-admin-server-ui-hystrix</artifactId>
  370. <version>${version.spring-boot-admin}</version>
  371. </dependency>
  372. <dependency>
  373. <groupId>de.codecentric</groupId>
  374. <artifactId>spring-boot-admin-server-ui-turbine</artifactId>
  375. <version>${version.spring-boot-admin}</version>
  376. </dependency>
  377. </dependencies>
  378. </dependencyManagement>
  379. <build>
  380. <plugins>
  381. <!--编译插件 start-->
  382. <plugin>
  383. <groupId>org.apache.maven.plugins</groupId>
  384. <artifactId>maven-compiler-plugin</artifactId>
  385. <configuration>
  386. <source>1.8</source>
  387. <target>1.8</target>
  388. </configuration>
  389. <version>3.1</version>
  390. </plugin>
  391. <plugin>
  392. <groupId>org.apache.maven.plugins</groupId>
  393. <artifactId>maven-source-plugin</artifactId>
  394. <configuration>
  395. <attach>true</attach>
  396. </configuration>
  397. <executions>
  398. <execution>
  399. <phase>compile</phase>
  400. <goals>
  401. <goal>jar</goal>
  402. </goals>
  403. </execution>
  404. </executions>
  405. </plugin>
  406. <!--编译插件 end-->
  407. <plugin>
  408. <groupId>org.asciidoctor</groupId>
  409. <artifactId>asciidoctor-maven-plugin</artifactId>
  410. <version>${asciidoctor.maven.plugin.version}</version>
  411. <configuration>
  412. <sourceDirectory>build</sourceDirectory>
  413. <outputDirectory>doc/${project.version}</outputDirectory>
  414. <headerFooter>true</headerFooter>
  415. <doctype>book</doctype>
  416. <sourceHighlighter>coderay</sourceHighlighter>
  417. <attributes>
  418. <toc>left</toc>
  419. <toclevels>3</toclevels>
  420. <sectnums>true</sectnums>
  421. <revnumber>${project.version}</revnumber>
  422. <revdate>${maven.build.timestamp}</revdate>
  423. <organization>厦门健康之路</organization>
  424. <sourcedir>${project.build.sourceDirectory}</sourcedir>
  425. </attributes>
  426. </configuration>
  427. <executions>
  428. <execution>
  429. <id>output-html</id>
  430. <phase>generate-resources</phase>
  431. <goals>
  432. <goal>process-asciidoc</goal>
  433. </goals>
  434. <configuration>
  435. <backend>html5</backend>
  436. </configuration>
  437. </execution>
  438. <execution>
  439. <id>output-docbook</id>
  440. <phase>generate-resources</phase>
  441. <goals>
  442. <goal>process-asciidoc</goal>
  443. </goals>
  444. <configuration>
  445. <backend>docbook</backend>
  446. </configuration>
  447. </execution>
  448. </executions>
  449. </plugin>
  450. </plugins>
  451. <pluginManagement>
  452. <plugins>
  453. <!--打成war包插件 还需要
  454. 1.配置类继承SpringBootServletInitializer
  455. 2.把所有tomcat相关的包的生命周期改成provide
  456. start-->
  457. <plugin>
  458. <artifactId>maven-war-plugin</artifactId>
  459. <configuration>
  460. <failOnMissingWebXml>false</failOnMissingWebXml>
  461. </configuration>
  462. </plugin>
  463. <!--打成war包插件 end-->
  464. <!--springboot插件 start-->
  465. <plugin>
  466. <groupId>org.springframework.boot</groupId>
  467. <artifactId>spring-boot-maven-plugin</artifactId>
  468. <executions>
  469. <execution>
  470. <goals>
  471. <goal>repackage</goal>
  472. </goals>
  473. </execution>
  474. </executions>
  475. </plugin>
  476. <!--springboot插件 en-->
  477. </plugins>
  478. </pluginManagement>
  479. </build>
  480. </project>