pom.xml 22 KB

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