pom.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  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>svr-lib-parent-pom</artifactId>
  13. <version>1.0.2</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. <modules>
  35. <module>../server/svr-configuration</module> <!--配置服务-->
  36. <module>../server/svr-discovery</module><!--发现服务-->
  37. <module>../server/svr-dashboard</module><!--监控服务-->
  38. <module>../server/svr-logServer</module><!--分布式追踪服务-->
  39. <module>../server/svr-yihu-admin-server</module><!--分布式追踪服务-->
  40. <!--业务微服务-->
  41. <module>../svr/svr-base</module><!--基础微服务-->
  42. <module>../svr/svr-wlyy</module><!--i健康微服务-->
  43. <!--<module>../svr/svr-manage</module>&lt;!&ndash;后台管理系统&ndash;&gt;-->
  44. <module>../svr/svr-iot</module><!--物联网平台-->
  45. <module>../svr/svr-rehabilitation</module><!--专科医生康复计划-->
  46. <!--网关-->
  47. <module>../web-gateway</module><!--web网关-->
  48. </modules>
  49. <properties>
  50. <version.mysql>5.1.38</version.mysql>
  51. <version.jackson>2.8.1</version.jackson>
  52. <version.myCommon>1.0.2</version.myCommon>
  53. <version.spring-data-hadoop>2.3.0.RELEASE</version.spring-data-hadoop>
  54. <version.springside>4.2.3-GA</version.springside>
  55. <version.zipkin>1.24.0</version.zipkin>
  56. <version.hibernate>5.0.12.Final</version.hibernate>
  57. <version.hibernate-jpa>1.0.0.Final</version.hibernate-jpa>
  58. <version.servlet-api>3.1.0</version.servlet-api>
  59. <version.swagger>2.7.0</version.swagger>
  60. <version.swagger-ui>2.7.0</version.swagger-ui>
  61. <version.quartz>2.3.0</version.quartz>
  62. <version.logback>1.2.3</version.logback>
  63. <version.jest>2.4.0</version.jest>
  64. <version.json>20160212</version.json>
  65. <verion.fastJson>1.2.17</verion.fastJson>
  66. <version.net-json>2.4</version.net-json>
  67. <version.common.lang3>3.2.1</version.common.lang3>
  68. <version.commons.collections>3.2.2</version.commons.collections>
  69. <version.commons.codec>1.11</version.commons.codec>
  70. <version.elasticsearch>2.4.4</version.elasticsearch>
  71. <version.elasticsearch-sql>2.4.1.0</version.elasticsearch-sql>
  72. <version.hbase>1.1.12</version.hbase>
  73. <version.hadoop>2.7.4</version.hadoop>
  74. <version.scala>2.10.6</version.scala>
  75. <version.hbase-client>1.1.1</version.hbase-client>
  76. <version.joda-time>2.8.2</version.joda-time>
  77. <version.solr>5.5.1</version.solr>
  78. <version.fastdfs>1.25</version.fastdfs>
  79. <version.spring-boot-admin>1.5.7</version.spring-boot-admin>
  80. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  81. <asciidoctor.maven.plugin.version>1.5.5</asciidoctor.maven.plugin.version>
  82. <asciidoctorj.version>1.5.5</asciidoctorj.version>
  83. <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
  84. <version.yihu.admin>1.2.0</version.yihu.admin>
  85. </properties>
  86. <!--dependencyManagement作用子配置不写版本默认继承父配置-->
  87. <dependencyManagement>
  88. <dependencies>
  89. <dependency>
  90. <groupId>com.yihu</groupId>
  91. <artifactId>admin-client-starter</artifactId>
  92. <version>${version.yihu.admin}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.yihu</groupId>
  96. <artifactId>admin-server-starter</artifactId>
  97. <version>${version.yihu.admin}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.yihu</groupId>
  101. <artifactId>admin-server-ui-starter</artifactId>
  102. <version>${version.yihu.admin}</version>
  103. </dependency>
  104. <!--服务器监监听-->
  105. <dependency>
  106. <groupId>de.codecentric</groupId>
  107. <artifactId>spring-boot-admin-server</artifactId>
  108. <version>${version.spring-boot-admin}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>de.codecentric</groupId>
  112. <artifactId>spring-boot-admin-server-ui</artifactId>
  113. <version>${version.spring-boot-admin}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>de.codecentric</groupId>
  117. <artifactId>spring-boot-admin-server-ui-hystrix</artifactId>
  118. <version>${version.spring-boot-admin}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>de.codecentric</groupId>
  122. <artifactId>spring-boot-admin-server-ui-turbine</artifactId>
  123. <version>${version.spring-boot-admin}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.springframework.cloud</groupId>
  127. <artifactId>spring-cloud-dependencies</artifactId>
  128. <version>Edgware.SR2</version>
  129. <type>pom</type>
  130. <scope>import</scope>
  131. </dependency>
  132. <!--自己的封装 common -->
  133. <dependency>
  134. <groupId>com.yihu.base</groupId>
  135. <artifactId>common-async</artifactId>
  136. <version>1.0.0</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.yihu.jw</groupId>
  140. <artifactId>common-fegin</artifactId>
  141. <version>${version.myCommon}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.yihu.jw</groupId>
  145. <artifactId>common-entity</artifactId>
  146. <version>${version.myCommon}</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.yihu.jw</groupId>
  150. <artifactId>common-request-mapping</artifactId>
  151. <version>${version.myCommon}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>com.yihu.jw</groupId>
  155. <artifactId>common-exception</artifactId>
  156. <version>${version.myCommon}</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.yihu.jw</groupId>
  160. <artifactId>common-rest-model</artifactId>
  161. <version>${version.myCommon}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.yihu.jw</groupId>
  165. <artifactId>common-rest-model-es</artifactId>
  166. <version>${version.myCommon}</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>com.yihu.jw</groupId>
  170. <artifactId>svr-base</artifactId>
  171. <version>${version.myCommon}</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>com.yihu.jw</groupId>
  175. <artifactId>common-util</artifactId>
  176. <version>${version.myCommon}</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>com.yihu.base</groupId>
  180. <artifactId>common-swagger</artifactId>
  181. <version>1.0.0</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>com.yihu.base</groupId>
  185. <artifactId>common-data-mysql</artifactId>
  186. <version>1.0.0</version>
  187. </dependency>
  188. <dependency>
  189. <groupId>com.yihu.base</groupId>
  190. <artifactId>common-log</artifactId>
  191. <version>1.0.0</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>com.yihu.base</groupId>
  195. <artifactId>common-quartz</artifactId>
  196. <version>1.0.0</version>
  197. </dependency>
  198. <!--数据库驱动 start-->
  199. <dependency>
  200. <groupId>mysql</groupId>
  201. <artifactId>mysql-connector-java</artifactId>
  202. <version>${version.mysql}</version>
  203. </dependency>
  204. <!--数据库驱动 end-->
  205. <!--fastJson start-->
  206. <dependency>
  207. <groupId>com.fasterxml.jackson.core</groupId>
  208. <artifactId>jackson-annotations</artifactId>
  209. <version>${version.jackson}</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>com.fasterxml.jackson.core</groupId>
  213. <artifactId>jackson-core</artifactId>
  214. <version>${version.jackson}</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.fasterxml.jackson.module</groupId>
  218. <artifactId>jackson-module-jaxb-annotations</artifactId>
  219. <version>${version.jackson}</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>com.fasterxml.jackson.core</groupId>
  223. <artifactId>jackson-databind</artifactId>
  224. <version>${version.jackson}</version>
  225. </dependency>
  226. <!--fastJson end-->
  227. <!--zipkin 日志追踪 start-->
  228. <dependency>
  229. <groupId>io.zipkin.java</groupId>
  230. <artifactId>zipkin-server</artifactId>
  231. <version>${version.zipkin}</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>io.zipkin.java</groupId>
  235. <artifactId>zipkin-autoconfigure-ui</artifactId>
  236. <version>${version.zipkin}</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>io.zipkin.java</groupId>
  240. <artifactId>zipkin-autoconfigure-storage-elasticsearch-http</artifactId>
  241. <version>${version.zipkin}</version>
  242. </dependency>
  243. <!--zipkin end-->
  244. <!---->
  245. <dependency>
  246. <groupId>org.springside</groupId>
  247. <artifactId>springside-core</artifactId>
  248. <version>${version.springside}</version>
  249. <classifier>GA</classifier>
  250. </dependency>
  251. <!--hibernate start-->
  252. <dependency>
  253. <groupId>org.hibernate</groupId>
  254. <artifactId>hibernate-core</artifactId>
  255. <version>${version.hibernate}</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>org.hibernate.javax.persistence</groupId>
  259. <artifactId>hibernate-jpa-2.1-api</artifactId>
  260. <version>${version.hibernate-jpa}</version>
  261. </dependency>
  262. <!--hibernate end-->
  263. <!--fastdfs start-->
  264. <dependency>
  265. <groupId>com.yihu.base</groupId>
  266. <artifactId>common-data-fastdfs</artifactId>
  267. <version>1.0.0</version>
  268. </dependency>
  269. <dependency>
  270. <groupId>org.csource</groupId>
  271. <artifactId>fastdfs_lib</artifactId>
  272. <version>${version.fastdfs}</version>
  273. </dependency>
  274. <!--fastdfs end-->
  275. <!--servlet api-->
  276. <dependency>
  277. <groupId>javax.servlet</groupId>
  278. <artifactId>javax.servlet-api</artifactId>
  279. <version>${version.servlet-api}</version>
  280. </dependency>
  281. <!--servlet api-->
  282. <!--swagger ui start-->
  283. <dependency>
  284. <groupId>io.springfox</groupId>
  285. <artifactId>springfox-swagger2</artifactId>
  286. <version>${version.swagger}</version>
  287. </dependency>
  288. <dependency>
  289. <groupId>io.springfox</groupId>
  290. <artifactId>springfox-swagger-ui</artifactId>
  291. <version>${version.swagger-ui}</version>
  292. </dependency>
  293. <!--swagger ui end-->
  294. <!--quartz start-->
  295. <dependency>
  296. <groupId>org.quartz-scheduler</groupId>
  297. <artifactId>quartz</artifactId>
  298. <version>${version.quartz}</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>org.quartz-scheduler</groupId>
  302. <artifactId>quartz-jobs</artifactId>
  303. <version>${version.quartz}</version>
  304. </dependency>
  305. <!--quartz end-->
  306. <!--log start-->
  307. <dependency>
  308. <groupId>ch.qos.logback</groupId>
  309. <artifactId>logback-classic</artifactId>
  310. <version>${version.logback}</version>
  311. </dependency>
  312. <dependency>
  313. <groupId>ch.qos.logback</groupId>
  314. <artifactId>logback-core</artifactId>
  315. <version>${version.logback}</version>
  316. </dependency>
  317. <dependency>
  318. <groupId>ch.qos.logback</groupId>
  319. <artifactId>logback-access</artifactId>
  320. <version>${version.logback}</version>
  321. </dependency>
  322. <!--log end-->
  323. <!-- json start-->
  324. <dependency>
  325. <groupId>org.json</groupId>
  326. <artifactId>json</artifactId>
  327. <version>${version.json}</version>
  328. </dependency>
  329. <dependency>
  330. <groupId>net.sf.json-lib</groupId>
  331. <artifactId>json-lib</artifactId>
  332. <version>${version.net-json}</version>
  333. </dependency>
  334. <!--json end -->
  335. <!-- es 客户端 start-->
  336. <dependency>
  337. <groupId>io.searchbox</groupId>
  338. <artifactId>jest</artifactId>
  339. <version>${version.jest}</version>
  340. </dependency>
  341. <dependency>
  342. <groupId>org.elasticsearch</groupId>
  343. <artifactId>elasticsearch</artifactId>
  344. <version>${version.elasticsearch}</version>
  345. </dependency>
  346. <!-- es 客户端 end-->
  347. <dependency>
  348. <groupId>org.apache.commons</groupId>
  349. <artifactId>commons-lang3</artifactId>
  350. <version>${version.common.lang3}</version>
  351. </dependency>
  352. <dependency>
  353. <groupId>commons-collections</groupId>
  354. <artifactId>commons-collections</artifactId>
  355. <version>${version.commons.collections}</version>
  356. </dependency>
  357. <dependency>
  358. <groupId>commons-codec</groupId>
  359. <artifactId>commons-codec</artifactId>
  360. <version>${version.commons.codec}</version>
  361. </dependency>
  362. <!--hadoop start-->
  363. <dependency>
  364. <groupId>org.apache.hadoop</groupId>
  365. <artifactId>hadoop-common</artifactId>
  366. <version>${version.hadoop}</version>
  367. </dependency>
  368. <dependency>
  369. <groupId>org.apache.hadoop</groupId>
  370. <artifactId>hadoop-client</artifactId>
  371. <version>${version.hadoop}</version>
  372. </dependency>
  373. <dependency>
  374. <groupId>org.apache.hadoop</groupId>
  375. <artifactId>hadoop-hdfs</artifactId>
  376. <version>${version.hadoop}</version>
  377. </dependency>
  378. <dependency>
  379. <groupId>org.apache.hadoop</groupId>
  380. <artifactId>hadoop-mapreduce-client-core</artifactId>
  381. <version>${version.hadoop}</version>
  382. </dependency>
  383. <dependency>
  384. <groupId>org.apache.hadoop</groupId>
  385. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  386. <version>${version.hadoop}</version>
  387. </dependency>
  388. <!--hadoop endf-->
  389. <!--scala编译 start-->
  390. <dependency>
  391. <groupId>org.scala-lang</groupId>
  392. <artifactId>scala-library</artifactId>
  393. <version>${version.scala}</version>
  394. </dependency>
  395. <dependency>
  396. <groupId>org.scala-lang</groupId>
  397. <artifactId>scala-compiler</artifactId>
  398. <version>${version.scala}</version>
  399. </dependency>
  400. <!--scala编译 end-->
  401. <!--elasticsearch start-->
  402. <dependency>
  403. <groupId>org.nlpcn</groupId>
  404. <artifactId>elasticsearch-sql</artifactId>
  405. <version>${version.elasticsearch-sql}</version>
  406. </dependency>
  407. <!--elasticsearch end-->
  408. <!--alibaba json 包-->
  409. <dependency>
  410. <groupId>com.alibaba</groupId>
  411. <artifactId>fastjson</artifactId>
  412. <version>${verion.fastJson}</version>
  413. <!--json 包-->
  414. </dependency>
  415. <dependency>
  416. <groupId>org.springframework.data</groupId>
  417. <artifactId>spring-data-hadoop-hbase</artifactId>
  418. <version>${version.spring-data-hadoop}</version>
  419. </dependency>
  420. <!-- hbase start-->
  421. <dependency>
  422. <groupId>org.apache.hbase</groupId>
  423. <artifactId>hbase-protocol</artifactId>
  424. <version>${version.hbase-client}</version>
  425. </dependency>
  426. <dependency>
  427. <groupId>org.apache.hbase</groupId>
  428. <artifactId>hbase-client</artifactId>
  429. <version>${version.hbase-client}</version>
  430. </dependency>
  431. <dependency>
  432. <groupId>org.apache.hbase</groupId>
  433. <artifactId>hbase-common</artifactId>
  434. <version>${version.hbase-client}</version>
  435. <exclusions>
  436. <exclusion>
  437. <groupId>org.slf4j</groupId>
  438. <artifactId>slf4j-log4j12</artifactId>
  439. </exclusion>
  440. </exclusions>
  441. </dependency>
  442. <!-- hbase end-->
  443. <!--solr start-->
  444. <dependency>
  445. <groupId>joda-time</groupId>
  446. <artifactId>joda-time</artifactId>
  447. <version>${version.joda-time}</version>
  448. </dependency>
  449. <dependency>
  450. <groupId>org.apache.solr</groupId>
  451. <artifactId>solr-core</artifactId>
  452. <version>${version.solr}</version>
  453. <exclusions>
  454. <exclusion>
  455. <groupId>commons-lang</groupId>
  456. <artifactId>commons-lang</artifactId>
  457. </exclusion>
  458. </exclusions>
  459. </dependency>
  460. <dependency>
  461. <groupId>org.apache.solr</groupId>
  462. <artifactId>solr-solrj</artifactId>
  463. <version>${version.solr}</version>
  464. <exclusions>
  465. <exclusion>
  466. <groupId>commons-lang</groupId>
  467. <artifactId>commons-lang</artifactId>
  468. </exclusion>
  469. </exclusions>
  470. </dependency>
  471. <!--solr end-->
  472. <dependency>
  473. <groupId>org.springframework</groupId>
  474. <artifactId>spring-beans</artifactId>
  475. <version>4.3.3.RELEASE</version>
  476. </dependency>
  477. </dependencies>
  478. </dependencyManagement>
  479. <build>
  480. <plugins>
  481. <!--编译插件 start-->
  482. <plugin>
  483. <groupId>org.apache.maven.plugins</groupId>
  484. <artifactId>maven-compiler-plugin</artifactId>
  485. <configuration>
  486. <source>1.8</source>
  487. <target>1.8</target>
  488. </configuration>
  489. <version>3.1</version>
  490. </plugin>
  491. <plugin>
  492. <groupId>org.apache.maven.plugins</groupId>
  493. <artifactId>maven-source-plugin</artifactId>
  494. <configuration>
  495. <attach>true</attach>
  496. </configuration>
  497. <executions>
  498. <execution>
  499. <phase>compile</phase>
  500. <goals>
  501. <goal>jar</goal>
  502. </goals>
  503. </execution>
  504. </executions>
  505. </plugin>
  506. <!--编译插件 end-->
  507. <plugin>
  508. <groupId>org.asciidoctor</groupId>
  509. <artifactId>asciidoctor-maven-plugin</artifactId>
  510. <version>${asciidoctor.maven.plugin.version}</version>
  511. <configuration>
  512. <sourceDirectory>build</sourceDirectory>
  513. <outputDirectory>build/asciidoc/${project.version}</outputDirectory>
  514. <headerFooter>true</headerFooter>
  515. <doctype>book</doctype>
  516. <sourceHighlighter>coderay</sourceHighlighter>
  517. <attributes>
  518. <toc>left</toc>
  519. <toclevels>3</toclevels>
  520. <sectnums>true</sectnums>
  521. <revnumber>${project.version}</revnumber>
  522. <revdate>${maven.build.timestamp}</revdate>
  523. <organization>厦门健康之路</organization>
  524. <sourcedir>${project.build.sourceDirectory}</sourcedir>
  525. </attributes>
  526. </configuration>
  527. <executions>
  528. <execution>
  529. <id>output-html</id>
  530. <phase>generate-resources</phase>
  531. <goals>
  532. <goal>process-asciidoc</goal>
  533. </goals>
  534. <configuration>
  535. <backend>html5</backend>
  536. </configuration>
  537. </execution>
  538. <execution>
  539. <id>output-docbook</id>
  540. <phase>generate-resources</phase>
  541. <goals>
  542. <goal>process-asciidoc</goal>
  543. </goals>
  544. <configuration>
  545. <backend>docbook</backend>
  546. </configuration>
  547. </execution>
  548. </executions>
  549. </plugin>
  550. </plugins>
  551. <pluginManagement>
  552. <plugins>
  553. <!--打成war包插件 还需要
  554. 1.配置类继承SpringBootServletInitializer
  555. 2.把所有tomcat相关的包的生命周期改成provide
  556. start-->
  557. <plugin>
  558. <artifactId>maven-war-plugin</artifactId>
  559. <configuration>
  560. <failOnMissingWebXml>false</failOnMissingWebXml>
  561. </configuration>
  562. </plugin>
  563. <!--打成war包插件 end-->
  564. <!--springboot插件 start-->
  565. <plugin>
  566. <groupId>org.springframework.boot</groupId>
  567. <artifactId>spring-boot-maven-plugin</artifactId>
  568. <executions>
  569. <execution>
  570. <goals>
  571. <goal>repackage</goal>
  572. </goals>
  573. </execution>
  574. </executions>
  575. </plugin>
  576. <!--springboot插件 en-->
  577. </plugins>
  578. </pluginManagement>
  579. </build>
  580. </project>