pom.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  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-util</artifactId>
  166. <version>${version.myCommon}</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>com.yihu.base</groupId>
  170. <artifactId>common-swagger</artifactId>
  171. <version>1.0.0</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>com.yihu.base</groupId>
  175. <artifactId>common-data-mysql</artifactId>
  176. <version>1.0.0</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>com.yihu.base</groupId>
  180. <artifactId>common-log</artifactId>
  181. <version>1.0.0</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>com.yihu.base</groupId>
  185. <artifactId>common-quartz</artifactId>
  186. <version>1.0.0</version>
  187. </dependency>
  188. <!--数据库驱动 start-->
  189. <dependency>
  190. <groupId>mysql</groupId>
  191. <artifactId>mysql-connector-java</artifactId>
  192. <version>${version.mysql}</version>
  193. </dependency>
  194. <!--数据库驱动 end-->
  195. <!--fastJson start-->
  196. <dependency>
  197. <groupId>com.fasterxml.jackson.core</groupId>
  198. <artifactId>jackson-annotations</artifactId>
  199. <version>${version.jackson}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>com.fasterxml.jackson.core</groupId>
  203. <artifactId>jackson-core</artifactId>
  204. <version>${version.jackson}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>com.fasterxml.jackson.module</groupId>
  208. <artifactId>jackson-module-jaxb-annotations</artifactId>
  209. <version>${version.jackson}</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>com.fasterxml.jackson.core</groupId>
  213. <artifactId>jackson-databind</artifactId>
  214. <version>${version.jackson}</version>
  215. </dependency>
  216. <!--fastJson end-->
  217. <!--zipkin 日志追踪 start-->
  218. <dependency>
  219. <groupId>io.zipkin.java</groupId>
  220. <artifactId>zipkin-server</artifactId>
  221. <version>${version.zipkin}</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>io.zipkin.java</groupId>
  225. <artifactId>zipkin-autoconfigure-ui</artifactId>
  226. <version>${version.zipkin}</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>io.zipkin.java</groupId>
  230. <artifactId>zipkin-autoconfigure-storage-elasticsearch-http</artifactId>
  231. <version>${version.zipkin}</version>
  232. </dependency>
  233. <!--zipkin end-->
  234. <!---->
  235. <dependency>
  236. <groupId>org.springside</groupId>
  237. <artifactId>springside-core</artifactId>
  238. <version>${version.springside}</version>
  239. <classifier>GA</classifier>
  240. </dependency>
  241. <!--hibernate start-->
  242. <dependency>
  243. <groupId>org.hibernate</groupId>
  244. <artifactId>hibernate-core</artifactId>
  245. <version>${version.hibernate}</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>org.hibernate.javax.persistence</groupId>
  249. <artifactId>hibernate-jpa-2.1-api</artifactId>
  250. <version>${version.hibernate-jpa}</version>
  251. </dependency>
  252. <!--hibernate end-->
  253. <!--fastdfs start-->
  254. <dependency>
  255. <groupId>com.yihu.base</groupId>
  256. <artifactId>common-data-fastdfs</artifactId>
  257. <version>1.0.0</version>
  258. </dependency>
  259. <dependency>
  260. <groupId>org.csource</groupId>
  261. <artifactId>fastdfs_lib</artifactId>
  262. <version>${version.fastdfs}</version>
  263. </dependency>
  264. <!--fastdfs end-->
  265. <!--servlet api-->
  266. <dependency>
  267. <groupId>javax.servlet</groupId>
  268. <artifactId>javax.servlet-api</artifactId>
  269. <version>${version.servlet-api}</version>
  270. </dependency>
  271. <!--servlet api-->
  272. <!--swagger ui start-->
  273. <dependency>
  274. <groupId>io.springfox</groupId>
  275. <artifactId>springfox-swagger2</artifactId>
  276. <version>${version.swagger}</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>io.springfox</groupId>
  280. <artifactId>springfox-swagger-ui</artifactId>
  281. <version>${version.swagger-ui}</version>
  282. </dependency>
  283. <!--swagger ui end-->
  284. <!--quartz start-->
  285. <dependency>
  286. <groupId>org.quartz-scheduler</groupId>
  287. <artifactId>quartz</artifactId>
  288. <version>${version.quartz}</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>org.quartz-scheduler</groupId>
  292. <artifactId>quartz-jobs</artifactId>
  293. <version>${version.quartz}</version>
  294. </dependency>
  295. <!--quartz end-->
  296. <!--log start-->
  297. <dependency>
  298. <groupId>ch.qos.logback</groupId>
  299. <artifactId>logback-classic</artifactId>
  300. <version>${version.logback}</version>
  301. </dependency>
  302. <dependency>
  303. <groupId>ch.qos.logback</groupId>
  304. <artifactId>logback-core</artifactId>
  305. <version>${version.logback}</version>
  306. </dependency>
  307. <dependency>
  308. <groupId>ch.qos.logback</groupId>
  309. <artifactId>logback-access</artifactId>
  310. <version>${version.logback}</version>
  311. </dependency>
  312. <!--log end-->
  313. <!-- json start-->
  314. <dependency>
  315. <groupId>org.json</groupId>
  316. <artifactId>json</artifactId>
  317. <version>${version.json}</version>
  318. </dependency>
  319. <dependency>
  320. <groupId>net.sf.json-lib</groupId>
  321. <artifactId>json-lib</artifactId>
  322. <version>${version.net-json}</version>
  323. </dependency>
  324. <!--json end -->
  325. <!-- es 客户端 start-->
  326. <dependency>
  327. <groupId>io.searchbox</groupId>
  328. <artifactId>jest</artifactId>
  329. <version>${version.jest}</version>
  330. </dependency>
  331. <dependency>
  332. <groupId>org.elasticsearch</groupId>
  333. <artifactId>elasticsearch</artifactId>
  334. <version>${version.elasticsearch}</version>
  335. </dependency>
  336. <!-- es 客户端 end-->
  337. <dependency>
  338. <groupId>org.apache.commons</groupId>
  339. <artifactId>commons-lang3</artifactId>
  340. <version>${version.common.lang3}</version>
  341. </dependency>
  342. <dependency>
  343. <groupId>commons-collections</groupId>
  344. <artifactId>commons-collections</artifactId>
  345. <version>${version.commons.collections}</version>
  346. </dependency>
  347. <dependency>
  348. <groupId>commons-codec</groupId>
  349. <artifactId>commons-codec</artifactId>
  350. <version>${version.commons.codec}</version>
  351. </dependency>
  352. <!--hadoop start-->
  353. <dependency>
  354. <groupId>org.apache.hadoop</groupId>
  355. <artifactId>hadoop-common</artifactId>
  356. <version>${version.hadoop}</version>
  357. </dependency>
  358. <dependency>
  359. <groupId>org.apache.hadoop</groupId>
  360. <artifactId>hadoop-client</artifactId>
  361. <version>${version.hadoop}</version>
  362. </dependency>
  363. <dependency>
  364. <groupId>org.apache.hadoop</groupId>
  365. <artifactId>hadoop-hdfs</artifactId>
  366. <version>${version.hadoop}</version>
  367. </dependency>
  368. <dependency>
  369. <groupId>org.apache.hadoop</groupId>
  370. <artifactId>hadoop-mapreduce-client-core</artifactId>
  371. <version>${version.hadoop}</version>
  372. </dependency>
  373. <dependency>
  374. <groupId>org.apache.hadoop</groupId>
  375. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  376. <version>${version.hadoop}</version>
  377. </dependency>
  378. <!--hadoop endf-->
  379. <!--scala编译 start-->
  380. <dependency>
  381. <groupId>org.scala-lang</groupId>
  382. <artifactId>scala-library</artifactId>
  383. <version>${version.scala}</version>
  384. </dependency>
  385. <dependency>
  386. <groupId>org.scala-lang</groupId>
  387. <artifactId>scala-compiler</artifactId>
  388. <version>${version.scala}</version>
  389. </dependency>
  390. <!--scala编译 end-->
  391. <!--elasticsearch start-->
  392. <dependency>
  393. <groupId>org.nlpcn</groupId>
  394. <artifactId>elasticsearch-sql</artifactId>
  395. <version>${version.elasticsearch-sql}</version>
  396. </dependency>
  397. <!--elasticsearch end-->
  398. <!--alibaba json 包-->
  399. <dependency>
  400. <groupId>com.alibaba</groupId>
  401. <artifactId>fastjson</artifactId>
  402. <version>${verion.fastJson}</version>
  403. <!--json 包-->
  404. </dependency>
  405. <dependency>
  406. <groupId>org.springframework.data</groupId>
  407. <artifactId>spring-data-hadoop-hbase</artifactId>
  408. <version>${version.spring-data-hadoop}</version>
  409. </dependency>
  410. <!-- hbase start-->
  411. <dependency>
  412. <groupId>org.apache.hbase</groupId>
  413. <artifactId>hbase-protocol</artifactId>
  414. <version>${version.hbase-client}</version>
  415. </dependency>
  416. <dependency>
  417. <groupId>org.apache.hbase</groupId>
  418. <artifactId>hbase-client</artifactId>
  419. <version>${version.hbase-client}</version>
  420. </dependency>
  421. <dependency>
  422. <groupId>org.apache.hbase</groupId>
  423. <artifactId>hbase-common</artifactId>
  424. <version>${version.hbase-client}</version>
  425. <exclusions>
  426. <exclusion>
  427. <groupId>org.slf4j</groupId>
  428. <artifactId>slf4j-log4j12</artifactId>
  429. </exclusion>
  430. </exclusions>
  431. </dependency>
  432. <!-- hbase end-->
  433. <!--solr start-->
  434. <dependency>
  435. <groupId>joda-time</groupId>
  436. <artifactId>joda-time</artifactId>
  437. <version>${version.joda-time}</version>
  438. </dependency>
  439. <dependency>
  440. <groupId>org.apache.solr</groupId>
  441. <artifactId>solr-core</artifactId>
  442. <version>${version.solr}</version>
  443. <exclusions>
  444. <exclusion>
  445. <groupId>commons-lang</groupId>
  446. <artifactId>commons-lang</artifactId>
  447. </exclusion>
  448. </exclusions>
  449. </dependency>
  450. <dependency>
  451. <groupId>org.apache.solr</groupId>
  452. <artifactId>solr-solrj</artifactId>
  453. <version>${version.solr}</version>
  454. <exclusions>
  455. <exclusion>
  456. <groupId>commons-lang</groupId>
  457. <artifactId>commons-lang</artifactId>
  458. </exclusion>
  459. </exclusions>
  460. </dependency>
  461. <!--solr end-->
  462. <dependency>
  463. <groupId>org.springframework</groupId>
  464. <artifactId>spring-beans</artifactId>
  465. <version>4.3.3.RELEASE</version>
  466. </dependency>
  467. </dependencies>
  468. </dependencyManagement>
  469. <build>
  470. <plugins>
  471. <!--编译插件 start-->
  472. <plugin>
  473. <groupId>org.apache.maven.plugins</groupId>
  474. <artifactId>maven-compiler-plugin</artifactId>
  475. <configuration>
  476. <source>1.8</source>
  477. <target>1.8</target>
  478. </configuration>
  479. <version>3.1</version>
  480. </plugin>
  481. <plugin>
  482. <groupId>org.apache.maven.plugins</groupId>
  483. <artifactId>maven-source-plugin</artifactId>
  484. <configuration>
  485. <attach>true</attach>
  486. </configuration>
  487. <executions>
  488. <execution>
  489. <phase>compile</phase>
  490. <goals>
  491. <goal>jar</goal>
  492. </goals>
  493. </execution>
  494. </executions>
  495. </plugin>
  496. <!--编译插件 end-->
  497. <plugin>
  498. <groupId>org.asciidoctor</groupId>
  499. <artifactId>asciidoctor-maven-plugin</artifactId>
  500. <version>${asciidoctor.maven.plugin.version}</version>
  501. <configuration>
  502. <sourceDirectory>build</sourceDirectory>
  503. <outputDirectory>build/asciidoc/${project.version}</outputDirectory>
  504. <headerFooter>true</headerFooter>
  505. <doctype>book</doctype>
  506. <sourceHighlighter>coderay</sourceHighlighter>
  507. <attributes>
  508. <toc>left</toc>
  509. <toclevels>3</toclevels>
  510. <sectnums>true</sectnums>
  511. <revnumber>${project.version}</revnumber>
  512. <revdate>${maven.build.timestamp}</revdate>
  513. <organization>厦门健康之路</organization>
  514. <sourcedir>${project.build.sourceDirectory}</sourcedir>
  515. </attributes>
  516. </configuration>
  517. <executions>
  518. <execution>
  519. <id>output-html</id>
  520. <phase>generate-resources</phase>
  521. <goals>
  522. <goal>process-asciidoc</goal>
  523. </goals>
  524. <configuration>
  525. <backend>html5</backend>
  526. </configuration>
  527. </execution>
  528. <execution>
  529. <id>output-docbook</id>
  530. <phase>generate-resources</phase>
  531. <goals>
  532. <goal>process-asciidoc</goal>
  533. </goals>
  534. <configuration>
  535. <backend>docbook</backend>
  536. </configuration>
  537. </execution>
  538. </executions>
  539. </plugin>
  540. </plugins>
  541. <pluginManagement>
  542. <plugins>
  543. <!--打成war包插件 还需要
  544. 1.配置类继承SpringBootServletInitializer
  545. 2.把所有tomcat相关的包的生命周期改成provide
  546. start-->
  547. <plugin>
  548. <artifactId>maven-war-plugin</artifactId>
  549. <configuration>
  550. <failOnMissingWebXml>false</failOnMissingWebXml>
  551. </configuration>
  552. </plugin>
  553. <!--打成war包插件 end-->
  554. <!--springboot插件 start-->
  555. <plugin>
  556. <groupId>org.springframework.boot</groupId>
  557. <artifactId>spring-boot-maven-plugin</artifactId>
  558. <executions>
  559. <execution>
  560. <goals>
  561. <goal>repackage</goal>
  562. </goals>
  563. </execution>
  564. </executions>
  565. </plugin>
  566. <!--springboot插件 en-->
  567. </plugins>
  568. </pluginManagement>
  569. </build>
  570. </project>