pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.hui.zhang</groupId>
  5. <artifactId>centaur-common</artifactId>
  6. <version>1.2.0</version>
  7. <name>centaur-common</name>
  8. <url>http://maven.apache.org</url>
  9. <properties>
  10. <maven.compiler.source>1.8</maven.compiler.source>
  11. <maven.compiler.target>1.8</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>com.hui.zhang</groupId>
  17. <artifactId>rpc-core</artifactId>
  18. <version>1.0.0</version>
  19. <exclusions>
  20. <exclusion>
  21. <groupId>log4j</groupId>
  22. <artifactId>log4j</artifactId>
  23. </exclusion>
  24. <exclusion>
  25. <groupId>commons-logging</groupId>
  26. <artifactId>commons-logging</artifactId>
  27. </exclusion>
  28. <exclusion>
  29. <groupId>org.springframework</groupId>
  30. <artifactId>spring</artifactId>
  31. </exclusion>
  32. </exclusions>
  33. </dependency>
  34. <!--common-->
  35. <dependency>
  36. <groupId>junit</groupId>
  37. <artifactId>junit</artifactId>
  38. <version>4.12</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.apache.commons</groupId>
  42. <artifactId>commons-lang3</artifactId>
  43. <version>3.6</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>commons-pool</groupId>
  47. <artifactId>commons-pool</artifactId>
  48. <version>1.6</version>
  49. </dependency>
  50. <!-- servlet -->
  51. <dependency>
  52. <groupId>javax.servlet</groupId>
  53. <artifactId>javax.servlet-api</artifactId>
  54. <version>3.1.0</version>
  55. <scope>provided</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.mongodb</groupId>
  59. <artifactId>mongo-java-driver</artifactId>
  60. <version>3.2.2</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>eu.bitwalker</groupId>
  64. <artifactId>UserAgentUtils</artifactId>
  65. <version>1.15</version>
  66. </dependency>
  67. <!-- MYSQL -->
  68. <dependency>
  69. <groupId>mysql</groupId>
  70. <artifactId>mysql-connector-java</artifactId>
  71. <version>5.1.8</version>
  72. </dependency>
  73. <!-- jedis -->
  74. <dependency>
  75. <groupId>redis.clients</groupId>
  76. <artifactId>jedis</artifactId>
  77. <version>2.5.2</version>
  78. </dependency>
  79. <!--log4j-->
  80. <dependency>
  81. <groupId>org.slf4j</groupId>
  82. <artifactId>slf4j-api</artifactId>
  83. <version>1.7.25</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.slf4j</groupId>
  87. <artifactId>jcl-over-slf4j</artifactId>
  88. <version>1.7.25</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.slf4j</groupId>
  92. <artifactId>jul-to-slf4j</artifactId>
  93. <version>1.7.25</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.slf4j</groupId>
  97. <artifactId>slf4j-log4j12</artifactId>
  98. <version>1.7.25</version>
  99. </dependency>
  100. <!-- json -->
  101. <dependency>
  102. <groupId>com.fasterxml.jackson.core</groupId>
  103. <artifactId>jackson-core</artifactId>
  104. <version>2.2.2</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.fasterxml.jackson.core</groupId>
  108. <artifactId>jackson-databind</artifactId>
  109. <version>2.2.2</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.fasterxml.jackson.core</groupId>
  113. <artifactId>jackson-annotations</artifactId>
  114. <version>2.2.2</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.codehaus.jackson</groupId>
  118. <artifactId>jackson-core-asl</artifactId>
  119. <version>1.9.9</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.alibaba</groupId>
  123. <artifactId>fastjson</artifactId>
  124. <version>1.2.20</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.google.code.gson</groupId>
  128. <artifactId>gson</artifactId>
  129. <version>2.8.2</version>
  130. </dependency>
  131. <!--lombok-->
  132. <dependency>
  133. <groupId>org.projectlombok</groupId>
  134. <artifactId>lombok</artifactId>
  135. <version>1.16.18</version>
  136. </dependency>
  137. <!--dom4j-->
  138. <dependency>
  139. <groupId>dom4j</groupId>
  140. <artifactId>dom4j</artifactId>
  141. <version>1.6.1</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.esotericsoftware.reflectasm</groupId>
  145. <artifactId>reflectasm</artifactId>
  146. <version>1.05</version>
  147. <exclusions>
  148. <exclusion>
  149. <groupId>log4j</groupId>
  150. <artifactId>log4j</artifactId>
  151. </exclusion>
  152. <exclusion>
  153. <groupId>commons-logging</groupId>
  154. <artifactId>commons-logging</artifactId>
  155. </exclusion>
  156. <exclusion>
  157. <groupId>org.springframework</groupId>
  158. <artifactId>spring</artifactId>
  159. </exclusion>
  160. </exclusions>
  161. </dependency>
  162. <!--栾天更换包版本为 1.1.12 旧版本为 1.0.28-->
  163. <dependency>
  164. <groupId>com.alibaba</groupId>
  165. <artifactId>druid</artifactId>
  166. <version>1.1.12</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>com.github.pagehelper</groupId>
  170. <artifactId>pagehelper</artifactId>
  171. <version>4.1.6</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.apache.curator</groupId>
  175. <artifactId>curator-recipes</artifactId>
  176. <version>2.12.0</version>
  177. </dependency>
  178. <!--springboot support jar-->
  179. <dependency>
  180. <groupId>org.mybatis.spring.boot</groupId>
  181. <artifactId>mybatis-spring-boot-starter</artifactId>
  182. <version>1.3.1</version>
  183. <exclusions>
  184. <exclusion>
  185. <groupId>log4j</groupId>
  186. <artifactId>log4j</artifactId>
  187. </exclusion>
  188. <exclusion>
  189. <groupId>commons-logging</groupId>
  190. <artifactId>commons-logging</artifactId>
  191. </exclusion>
  192. <exclusion>
  193. <groupId>org.springframework</groupId>
  194. <artifactId>spring</artifactId>
  195. </exclusion>
  196. </exclusions>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.springframework.boot</groupId>
  200. <artifactId>spring-boot-starter-freemarker</artifactId>
  201. <version>1.5.3.RELEASE</version>
  202. <exclusions>
  203. <exclusion>
  204. <groupId>log4j</groupId>
  205. <artifactId>log4j</artifactId>
  206. </exclusion>
  207. <exclusion>
  208. <groupId>commons-logging</groupId>
  209. <artifactId>commons-logging</artifactId>
  210. </exclusion>
  211. <exclusion>
  212. <groupId>org.springframework</groupId>
  213. <artifactId>spring</artifactId>
  214. </exclusion>
  215. </exclusions>
  216. </dependency>
  217. <dependency>
  218. <groupId>org.springframework.boot</groupId>
  219. <artifactId>spring-boot-starter-log4j</artifactId>
  220. <version>1.3.8.RELEASE</version>
  221. <exclusions>
  222. <exclusion>
  223. <groupId>log4j</groupId>
  224. <artifactId>log4j</artifactId>
  225. </exclusion>
  226. <exclusion>
  227. <groupId>commons-logging</groupId>
  228. <artifactId>commons-logging</artifactId>
  229. </exclusion>
  230. <exclusion>
  231. <groupId>org.springframework</groupId>
  232. <artifactId>spring</artifactId>
  233. </exclusion>
  234. </exclusions>
  235. </dependency>
  236. <dependency>
  237. <groupId>org.springframework.boot</groupId>
  238. <artifactId>spring-boot-starter-test</artifactId>
  239. <version>1.5.3.RELEASE</version>
  240. <exclusions>
  241. <exclusion>
  242. <groupId>log4j</groupId>
  243. <artifactId>log4j</artifactId>
  244. </exclusion>
  245. <exclusion>
  246. <groupId>commons-logging</groupId>
  247. <artifactId>commons-logging</artifactId>
  248. </exclusion>
  249. <exclusion>
  250. <groupId>org.springframework</groupId>
  251. <artifactId>spring</artifactId>
  252. </exclusion>
  253. </exclusions>
  254. </dependency>
  255. <dependency>
  256. <groupId>org.springframework.boot</groupId>
  257. <artifactId>spring-boot-starter-aop</artifactId>
  258. <version>1.5.3.RELEASE</version>
  259. <exclusions>
  260. <exclusion>
  261. <groupId>log4j</groupId>
  262. <artifactId>log4j</artifactId>
  263. </exclusion>
  264. <exclusion>
  265. <groupId>commons-logging</groupId>
  266. <artifactId>commons-logging</artifactId>
  267. </exclusion>
  268. <exclusion>
  269. <groupId>org.springframework</groupId>
  270. <artifactId>spring</artifactId>
  271. </exclusion>
  272. </exclusions>
  273. </dependency>
  274. <dependency>
  275. <groupId>com.github.sgroschupf</groupId>
  276. <artifactId>zkclient</artifactId>
  277. <version>0.1</version>
  278. <exclusions>
  279. <exclusion>
  280. <groupId>log4j</groupId>
  281. <artifactId>log4j</artifactId>
  282. </exclusion>
  283. <exclusion>
  284. <groupId>commons-logging</groupId>
  285. <artifactId>commons-logging</artifactId>
  286. </exclusion>
  287. <exclusion>
  288. <groupId>org.springframework</groupId>
  289. <artifactId>spring</artifactId>
  290. </exclusion>
  291. </exclusions>
  292. </dependency>
  293. <dependency>
  294. <groupId>org.apache.zookeeper</groupId>
  295. <artifactId>zookeeper</artifactId>
  296. <version>3.4.8</version>
  297. </dependency>
  298. <dependency>
  299. <groupId>com.alibaba</groupId>
  300. <artifactId>dubbo</artifactId>
  301. <version>2.5.9</version>
  302. <exclusions>
  303. <exclusion>
  304. <groupId>log4j</groupId>
  305. <artifactId>log4j</artifactId>
  306. </exclusion>
  307. <exclusion>
  308. <groupId>commons-logging</groupId>
  309. <artifactId>commons-logging</artifactId>
  310. </exclusion>
  311. <exclusion>
  312. <groupId>org.springframework</groupId>
  313. <artifactId>spring</artifactId>
  314. </exclusion>
  315. </exclusions>
  316. </dependency>
  317. <dependency>
  318. <groupId>com.caucho</groupId>
  319. <artifactId>hessian</artifactId>
  320. <version>4.0.51</version>
  321. </dependency>
  322. <!--rocketmq-->
  323. <dependency>
  324. <groupId>org.apache.rocketmq</groupId>
  325. <artifactId>rocketmq-client</artifactId>
  326. <version>4.1.0-incubating</version>
  327. <exclusions>
  328. <exclusion>
  329. <groupId>log4j</groupId>
  330. <artifactId>log4j</artifactId>
  331. </exclusion>
  332. <exclusion>
  333. <groupId>commons-logging</groupId>
  334. <artifactId>commons-logging</artifactId>
  335. </exclusion>
  336. <exclusion>
  337. <groupId>org.springframework</groupId>
  338. <artifactId>spring</artifactId>
  339. </exclusion>
  340. </exclusions>
  341. </dependency>
  342. <!--ALIYUN MQ-->
  343. <dependency>
  344. <groupId>com.aliyun.openservices</groupId>
  345. <artifactId>ons-client</artifactId>
  346. <version>1.8.0.Final</version>
  347. </dependency>
  348. <dependency>
  349. <groupId>org.springframework</groupId>
  350. <artifactId>spring-messaging</artifactId>
  351. <version>4.3.11.RELEASE</version>
  352. </dependency>
  353. <dependency>
  354. <groupId>org.elasticsearch</groupId>
  355. <artifactId>elasticsearch</artifactId>
  356. <version>6.3.0</version>
  357. </dependency>
  358. <!--事务-->
  359. <!-- <dependency>
  360. <groupId>org.springframework.boot</groupId>
  361. <artifactId>spring-boot-starter-jta-atomikos</artifactId>
  362. <version>1.5.3.RELEASE</version>
  363. </dependency>-->
  364. <dependency>
  365. <groupId>org.mybatis.generator</groupId>
  366. <artifactId>mybatis-generator-maven-plugin</artifactId>
  367. <version>1.3.2</version>
  368. <exclusions>
  369. <exclusion>
  370. <groupId>
  371. com.google.code.google-collections
  372. </groupId>
  373. <artifactId>google-collect</artifactId>
  374. </exclusion>
  375. <exclusion>
  376. <groupId>org.sonatype.sisu</groupId>
  377. <artifactId>sisu-guava</artifactId>
  378. </exclusion>
  379. </exclusions>
  380. </dependency>
  381. <dependency>
  382. <groupId>org.elasticsearch.client</groupId>
  383. <artifactId>transport</artifactId>
  384. <version>6.3.0</version>
  385. </dependency>
  386. <dependency>
  387. <groupId>org.elasticsearch</groupId>
  388. <artifactId>elasticsearch</artifactId>
  389. <version>6.3.0</version>
  390. </dependency>
  391. <dependency>
  392. <groupId>com.alibaba</groupId>
  393. <artifactId>transmittable-thread-local</artifactId>
  394. <version>2.10.2</version>
  395. </dependency>
  396. <dependency>
  397. <groupId>org.springframework.cloud</groupId>
  398. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  399. <version>1.4.4.RELEASE</version>
  400. </dependency>
  401. <!-- 1. brave 对 dubbo 的集成 -->
  402. <dependency>
  403. <groupId>io.zipkin.brave</groupId>
  404. <artifactId>brave-instrumentation-dubbo-rpc</artifactId>
  405. </dependency>
  406. <!-- 2. brave 的 spring bean 支持 -->
  407. <dependency>
  408. <groupId>io.zipkin.brave</groupId>
  409. <artifactId>brave-spring-beans</artifactId>
  410. </dependency>
  411. <!-- 3. 在 SLF4J 的 MDC (Mapped Diagnostic Context) 中支持 traceId 和 spanId -->
  412. <dependency>
  413. <groupId>io.zipkin.brave</groupId>
  414. <artifactId>brave-context-slf4j</artifactId>
  415. </dependency>
  416. <!-- 4. 使用 okhttp3 作为 reporter -->
  417. <dependency>
  418. <groupId>io.zipkin.reporter2</groupId>
  419. <artifactId>zipkin-sender-okhttp3</artifactId>
  420. </dependency>
  421. <dependency>
  422. <groupId>com.netflix.hystrix</groupId>
  423. <artifactId>hystrix-javanica</artifactId>
  424. <version>1.5.12</version>
  425. </dependency>
  426. <!-- https://mvnrepository.com/artifact/org.redisson/redisson -->
  427. <dependency>
  428. <groupId>org.redisson</groupId>
  429. <artifactId>redisson</artifactId>
  430. <version>3.10.7</version>
  431. </dependency>
  432. <dependency>
  433. <groupId>io.seata</groupId>
  434. <artifactId>seata-all</artifactId>
  435. <version>0.6.1</version>
  436. </dependency>
  437. </dependencies>
  438. <dependencyManagement>
  439. <dependencies>
  440. <!-- 引入 zipkin brave 的 BOM 文件 -->
  441. <dependency>
  442. <groupId>io.zipkin.brave</groupId>
  443. <artifactId>brave-bom</artifactId>
  444. <version>5.4.2</version>
  445. <type>pom</type>
  446. <scope>import</scope>
  447. </dependency>
  448. <!-- 引入 zipkin repoter 的 BOM 文件 -->
  449. <dependency>
  450. <groupId>io.zipkin.reporter2</groupId>
  451. <artifactId>zipkin-reporter-bom</artifactId>
  452. <version>2.7.9</version>
  453. <type>pom</type>
  454. <scope>import</scope>
  455. </dependency>
  456. </dependencies>
  457. </dependencyManagement>
  458. <build>
  459. <!--<resources>
  460. <resource>
  461. <directory>src/main/java</directory>
  462. <includes>
  463. <include>**/*.xml</include>
  464. </includes>
  465. </resource>
  466. <resource>
  467. <directory>src/main/resources</directory>
  468. <includes>
  469. <include>**/*</include>
  470. </includes>
  471. </resource>
  472. </resources>-->
  473. <plugins>
  474. <plugin>
  475. <groupId>org.apache.maven.plugins</groupId>
  476. <artifactId>maven-compiler-plugin</artifactId>
  477. <version>3.3</version>
  478. <configuration>
  479. <source>1.8</source>
  480. <target>1.8</target>
  481. </configuration>
  482. </plugin>
  483. <plugin>
  484. <groupId>org.apache.maven.plugins</groupId>
  485. <artifactId>maven-release-plugin</artifactId>
  486. <version>2.4.1</version>
  487. </plugin>
  488. <!--打包jar包-->
  489. <plugin>
  490. <groupId>org.apache.maven.plugins</groupId>
  491. <artifactId>maven-deploy-plugin</artifactId>
  492. <version>2.7</version>
  493. <configuration>
  494. <updateReleaseInfo>true</updateReleaseInfo>
  495. </configuration>
  496. </plugin>
  497. <!--打包源码-->
  498. <plugin>
  499. <groupId>org.apache.maven.plugins</groupId>
  500. <artifactId>maven-source-plugin</artifactId>
  501. <version>2.2.1</version>
  502. <executions>
  503. <execution>
  504. <phase>package</phase>
  505. <goals>
  506. <goal>jar</goal>
  507. </goals>
  508. </execution>
  509. </executions>
  510. </plugin>
  511. </plugins>
  512. </build>
  513. <distributionManagement>
  514. <repository>
  515. <id>releases</id>
  516. <name>Nexus Release Repository</name>
  517. <url>http://192.168.3.24:8081/repository/maven-releases/</url>
  518. </repository>
  519. <snapshotRepository>
  520. <id>snapshots</id>
  521. <name>Nexus Snapshot Repository</name>
  522. <url>http://192.168.3.24:8081/repository/maven-snapshots/</url>
  523. </snapshotRepository>
  524. </distributionManagement>
  525. </project>