pom.xml 24 KB

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