pom.xml 22 KB

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