pom.xml 24 KB

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