pom.xml 23 KB

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