pom.xml 23 KB

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