pom.xml 20 KB

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