pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4. <parent>
  5. <groupId>com.yihu.jw</groupId>
  6. <artifactId>wlyy-parent-pom</artifactId>
  7. <version>2.0.0</version>
  8. <relativePath>../../wlyy-parent-pom/pom.xml</relativePath>
  9. </parent>
  10. <groupId>com.yihu.jw</groupId>
  11. <artifactId>svr-statistics-es</artifactId>
  12. <version>1.0.0</version>
  13. <modelVersion>4.0.0</modelVersion>
  14. <!--打成war包需要的配置-->
  15. <packaging>jar</packaging>
  16. <name>svr-statistics-es</name>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <version.commons-bean-utils>1.9.3</version.commons-bean-utils>
  20. <version.commons-codec>1.10</version.commons-codec>
  21. <version.commons-collections>3.2.2</version.commons-collections>
  22. <version.commons-compress>1.9</version.commons-compress>
  23. <version.commons-dbcp2>2.1.1</version.commons-dbcp2>
  24. <version.commons-dbutils>1.6</version.commons-dbutils>
  25. <version.commons-io>2.4</version.commons-io>
  26. <version.commons-lang3>3.2.1</version.commons-lang3>
  27. <version.commons-pool2>2.4.2</version.commons-pool2>
  28. <version.hibernate>5.0.12.Final</version.hibernate>
  29. <version.hibernate-annotations>4.0.5.Final</version.hibernate-annotations>
  30. <version.hibernate-jpa-api>1.0.0.Final</version.hibernate-jpa-api>
  31. <version.http-client>4.5.1</version.http-client>
  32. <version.http-core>4.4.3</version.http-core>
  33. <version.java>1.8</version.java>
  34. <version.jackson>2.8.10</version.jackson>
  35. <version.jedis>2.9.0</version.jedis>
  36. <version.jcl-over-slf4j>1.7.19</version.jcl-over-slf4j>
  37. <version.jul-over-slf4j>1.7.21</version.jul-over-slf4j>
  38. <version.joda-time>2.8.2</version.joda-time>
  39. <version.junit>4.12</version.junit>
  40. <version.log4j2>2.4.1</version.log4j2>
  41. <version.logback>1.2.3</version.logback>
  42. <version.mysql>5.1.44</version.mysql>
  43. <version.quartz>2.2.3</version.quartz>
  44. <version.servlet-api>3.1.0</version.servlet-api>
  45. <version.slf4j>1.7.21</version.slf4j>
  46. <version.tomcat-embed>8.0.28</version.tomcat-embed>
  47. <version.elasticsearch>2.4.6</version.elasticsearch>
  48. <version.jest>2.4.0</version.jest>
  49. </properties>
  50. <dependencies>
  51. <dependency>
  52. <groupId>com.yihu.jw</groupId>
  53. <artifactId>common-entity</artifactId>
  54. <version>2.0.0</version>
  55. </dependency>
  56. <!--Jackson library-->
  57. <dependency>
  58. <groupId>com.fasterxml.jackson.core</groupId>
  59. <artifactId>jackson-annotations</artifactId>
  60. <version>${version.jackson}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.fasterxml.jackson.core</groupId>
  64. <artifactId>jackson-core</artifactId>
  65. <version>${version.jackson}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.fasterxml.jackson.core</groupId>
  69. <artifactId>jackson-databind</artifactId>
  70. <version>${version.jackson}</version>
  71. </dependency>
  72. <!--elasticsearch start-->
  73. <dependency>
  74. <groupId>org.elasticsearch</groupId>
  75. <artifactId>elasticsearch</artifactId>
  76. <version>${version.elasticsearch}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>io.searchbox</groupId>
  80. <artifactId>jest</artifactId>
  81. <version>${version.jest}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.elasticsearch.plugin</groupId>
  85. <artifactId>shield</artifactId>
  86. <version>${version.elasticsearch}</version>
  87. </dependency>
  88. <!--elasticsearch end-->
  89. <!--Apache commons library-->
  90. <dependency>
  91. <groupId>org.apache.httpcomponents</groupId>
  92. <artifactId>httpmime</artifactId>
  93. <version>4.4.1</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.apache.commons</groupId>
  97. <artifactId>commons-lang3</artifactId>
  98. <version>${version.commons-lang3}</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.httpcomponents</groupId>
  102. <artifactId>httpcore</artifactId>
  103. <version>${version.http-core}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.httpcomponents</groupId>
  107. <artifactId>httpclient</artifactId>
  108. <version>${version.http-client}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>commons-beanutils</groupId>
  112. <artifactId>commons-beanutils</artifactId>
  113. <version>${version.commons-bean-utils}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.apache.commons</groupId>
  117. <artifactId>commons-pool2</artifactId>
  118. <version>${version.commons-pool2}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>commons-dbutils</groupId>
  122. <artifactId>commons-dbutils</artifactId>
  123. <version>${version.commons-dbutils}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.commons</groupId>
  127. <artifactId>commons-dbcp2</artifactId>
  128. <version>${version.commons-dbcp2}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>commons-io</groupId>
  132. <artifactId>commons-io</artifactId>
  133. <version>${version.commons-io}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>commons-collections</groupId>
  137. <artifactId>commons-collections</artifactId>
  138. <version>${version.commons-collections}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.commons</groupId>
  142. <artifactId>commons-compress</artifactId>
  143. <version>${version.commons-compress}</version>
  144. </dependency>
  145. <!--Hibernate framework-->
  146. <dependency>
  147. <groupId>org.hibernate.javax.persistence</groupId>
  148. <artifactId>hibernate-jpa-2.1-api</artifactId>
  149. <version>${version.hibernate-jpa-api}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.hibernate</groupId>
  153. <artifactId>hibernate-core</artifactId>
  154. <version>${version.hibernate}</version>
  155. </dependency>
  156. <!--Miscellaneous-->
  157. <dependency>
  158. <groupId>org.quartz-scheduler</groupId>
  159. <artifactId>quartz</artifactId>
  160. <version>${version.quartz}</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.quartz-scheduler</groupId>
  164. <artifactId>quartz-jobs</artifactId>
  165. <version>${version.quartz}</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>javax.servlet</groupId>
  169. <artifactId>javax.servlet-api</artifactId>
  170. <version>${version.servlet-api}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.slf4j</groupId>
  174. <artifactId>slf4j-api</artifactId>
  175. <version>${version.slf4j}</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>junit</groupId>
  179. <artifactId>junit</artifactId>
  180. <version>${version.junit}</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>io.springfox</groupId>
  184. <artifactId>springfox-swagger2</artifactId>
  185. </dependency>
  186. <dependency>
  187. <groupId>io.springfox</groupId>
  188. <artifactId>springfox-swagger-ui</artifactId>
  189. </dependency>
  190. <dependency>
  191. <groupId>mysql</groupId>
  192. <artifactId>mysql-connector-java</artifactId>
  193. <version>${version.mysql}</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>joda-time</groupId>
  197. <artifactId>joda-time</artifactId>
  198. <version>${version.joda-time}</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>commons-codec</groupId>
  202. <artifactId>commons-codec</artifactId>
  203. <version>${version.commons-codec}</version>
  204. </dependency>
  205. <!--Log framework-->
  206. <dependency>
  207. <groupId>org.apache.logging.log4j</groupId>
  208. <artifactId>log4j-api</artifactId>
  209. <version>${version.log4j2}</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.apache.logging.log4j</groupId>
  213. <artifactId>log4j-core</artifactId>
  214. <version>${version.log4j2}</version>
  215. </dependency>
  216. <!--Log framework to SLF4J bridge: x-over-slf4j-->
  217. <dependency>
  218. <groupId>org.slf4j</groupId>
  219. <artifactId>jcl-over-slf4j</artifactId>
  220. <version>${version.jcl-over-slf4j}</version>
  221. <exclusions>
  222. <exclusion>
  223. <groupId>org.slf4j</groupId>
  224. <artifactId>slf4j-jdk14</artifactId>
  225. </exclusion>
  226. </exclusions>
  227. </dependency>
  228. <dependency>
  229. <groupId>org.slf4j</groupId>
  230. <artifactId>jul-to-slf4j</artifactId>
  231. <version>${version.jul-over-slf4j}</version>
  232. <exclusions>
  233. <exclusion>
  234. <groupId>org.slf4j</groupId>
  235. <artifactId>slf4j-log4j12</artifactId>
  236. </exclusion>
  237. </exclusions>
  238. </dependency>
  239. <!--SLF4J api-->
  240. <dependency>
  241. <groupId>org.slf4j</groupId>
  242. <artifactId>slf4j-api</artifactId>
  243. <version>${version.slf4j}</version>
  244. </dependency>
  245. <!--The single log BACKEND-->
  246. <dependency>
  247. <groupId>ch.qos.logback</groupId>
  248. <artifactId>logback-classic</artifactId>
  249. <version>${version.logback}</version>
  250. </dependency>
  251. <!--Spring framework family-->
  252. <dependency>
  253. <groupId>org.springframework</groupId>
  254. <artifactId>spring-core</artifactId>
  255. </dependency>
  256. <dependency>
  257. <groupId>org.springframework</groupId>
  258. <artifactId>spring-context</artifactId>
  259. </dependency>
  260. <dependency>
  261. <groupId>org.springframework</groupId>
  262. <artifactId>spring-aop</artifactId>
  263. </dependency>
  264. <dependency>
  265. <groupId>org.springframework</groupId>
  266. <artifactId>spring-beans</artifactId>
  267. </dependency>
  268. <dependency>
  269. <groupId>org.springframework</groupId>
  270. <artifactId>spring-web</artifactId>
  271. </dependency>
  272. <dependency>
  273. <groupId>org.springframework</groupId>
  274. <artifactId>spring-webmvc</artifactId>
  275. </dependency>
  276. <dependency>
  277. <groupId>org.springframework</groupId>
  278. <artifactId>spring-orm</artifactId>
  279. </dependency>
  280. <dependency>
  281. <groupId>org.springframework</groupId>
  282. <artifactId>spring-context-support</artifactId>
  283. </dependency>
  284. <dependency>
  285. <groupId>org.springframework</groupId>
  286. <artifactId>spring-jdbc</artifactId>
  287. </dependency>
  288. <!--Spring integration family-->
  289. <dependency>
  290. <groupId>org.springframework.integration</groupId>
  291. <artifactId>spring-integration-jmx</artifactId>
  292. </dependency>
  293. <!--Spring batch family-->
  294. <!--Spring boot family-->
  295. <dependency>
  296. <groupId>org.springframework.boot</groupId>
  297. <artifactId>spring-boot</artifactId>
  298. </dependency>
  299. <!--<dependency>-->
  300. <!--<groupId>org.springframework.boot</groupId>-->
  301. <!--<artifactId>spring-boot-devtools</artifactId>-->
  302. <!--<version>${version.spring-boot}</version>-->
  303. <!--</dependency>-->
  304. <dependency>
  305. <groupId>org.springframework.boot</groupId>
  306. <artifactId>spring-boot-starter-aop</artifactId>
  307. </dependency>
  308. <dependency>
  309. <groupId>org.springframework.boot</groupId>
  310. <artifactId>spring-boot-starter-data-jpa</artifactId>
  311. </dependency>
  312. <dependency>
  313. <groupId>org.springframework.boot</groupId>
  314. <artifactId>spring-boot-starter-jdbc</artifactId>
  315. </dependency>
  316. <dependency>
  317. <groupId>org.springframework.boot</groupId>
  318. <artifactId>spring-boot-starter-security</artifactId>
  319. </dependency>
  320. <dependency>
  321. <groupId>org.springframework.boot</groupId>
  322. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  323. </dependency>
  324. <dependency>
  325. <groupId>org.springframework.boot</groupId>
  326. <artifactId>spring-boot-starter-mail</artifactId>
  327. </dependency>
  328. <dependency>
  329. <groupId>org.springframework.boot</groupId>
  330. <artifactId>spring-boot-starter-data-redis</artifactId>
  331. </dependency>
  332. <dependency>
  333. <groupId>org.springframework</groupId>
  334. <artifactId>spring-beans</artifactId>
  335. </dependency>
  336. <!--<dependency>-->
  337. <!--<groupId>de.codecentric</groupId>-->
  338. <!--<artifactId>spring-boot-admin-starter-client</artifactId>-->
  339. <!--<version>1.3.5</version>-->
  340. <!--</dependency>-->
  341. <dependency>
  342. <groupId>org.springframework.boot</groupId>
  343. <artifactId>spring-boot-starter-web</artifactId>
  344. <exclusions>
  345. <exclusion>
  346. <groupId>org.springframework.boot</groupId>
  347. <artifactId>spring-boot-starter-tomcat</artifactId>
  348. </exclusion>
  349. </exclusions>
  350. </dependency>
  351. <dependency>
  352. <groupId>org.springframework.boot</groupId>
  353. <artifactId>spring-boot-starter-tomcat</artifactId>
  354. <!--<scope>provided</scope>-->
  355. </dependency>
  356. <dependency>
  357. <groupId>org.json</groupId>
  358. <artifactId>json</artifactId>
  359. <version>20151123</version>
  360. </dependency>
  361. <dependency>
  362. <groupId>org.springframework</groupId>
  363. <artifactId>spring-orm</artifactId>
  364. </dependency>
  365. <dependency>
  366. <groupId>net.sf.json-lib</groupId>
  367. <artifactId>json-lib</artifactId>
  368. <version>2.4</version>
  369. </dependency>
  370. <dependency>
  371. <groupId>com.alibaba</groupId>
  372. <artifactId>druid</artifactId>
  373. <version>1.0.15</version>
  374. </dependency>
  375. <dependency>
  376. <groupId>org.nlpcn</groupId>
  377. <artifactId>elasticsearch-sql</artifactId>
  378. <version>2.4.2.1</version>
  379. </dependency>
  380. <dependency>
  381. <groupId>org.elasticsearch.plugin</groupId>
  382. <artifactId>delete-by-query</artifactId>
  383. <version>2.4.1</version>
  384. </dependency>
  385. <dependency>
  386. <groupId>com.alibaba</groupId>
  387. <artifactId>fastjson</artifactId>
  388. <version>1.2.72</version>
  389. </dependency>
  390. <!--<dependency>-->
  391. <!--<groupId>org.springframework.boot</groupId>-->
  392. <!--<artifactId>spring-boot-starter-data-elasticsearch</artifactId>-->
  393. <!--<version>1.3.5.RELEASE</version>-->
  394. <!--</dependency>-->
  395. </dependencies>
  396. <build>
  397. <finalName>svr-statistics-es</finalName>
  398. <plugins>
  399. <plugin>
  400. <groupId>org.apache.maven.plugins</groupId>
  401. <artifactId>maven-jar-plugin</artifactId>
  402. <configuration>
  403. <archive>
  404. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  405. <addMavenDescriptor>false</addMavenDescriptor>
  406. <manifest>
  407. <!-- 是否要把第三方jar加入到类构建路径 -->
  408. <addClasspath>true</addClasspath>
  409. <!-- 外部依赖jar包的最终位置 -->
  410. <classpathPrefix>lib/</classpathPrefix>
  411. <mainClass>com.yihu.wlyy.Application</mainClass>
  412. </manifest>
  413. </archive>
  414. </configuration>
  415. </plugin>
  416. <!--拷贝依赖到jar外面的lib目录-->
  417. <plugin>
  418. <groupId>org.apache.maven.plugins</groupId>
  419. <artifactId>maven-dependency-plugin</artifactId>
  420. <executions>
  421. <execution>
  422. <id>copy-lib</id>
  423. <phase>package</phase>
  424. <goals>
  425. <goal>copy-dependencies</goal>
  426. </goals>
  427. <configuration>
  428. <!-- 依赖包输出目录,将来不打进jar包里 -->
  429. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  430. <excludeTransitive>false</excludeTransitive>
  431. <stripVersion>false</stripVersion>
  432. <includeScope>runtime</includeScope>
  433. </configuration>
  434. </execution>
  435. </executions>
  436. </plugin>
  437. <!--指定配置文件,将resources打成外部resource-->
  438. <plugin>
  439. <groupId>org.apache.maven.plugins</groupId>
  440. <artifactId>maven-jar-plugin</artifactId>
  441. <configuration>
  442. <archive>
  443. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  444. <manifestEntries>
  445. <Class-Path>resources/</Class-Path>
  446. </manifestEntries>
  447. </archive>
  448. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  449. <excludes>
  450. <exclude>**/*.yml</exclude>
  451. <exclude>**/*.xml</exclude>
  452. </excludes>
  453. </configuration>
  454. </plugin>
  455. <!-- 拷贝资源文件 外面的resource目录-->
  456. <plugin>
  457. <artifactId>maven-resources-plugin</artifactId>
  458. <executions>
  459. <execution>
  460. <id>copy-dependencies</id>
  461. <phase>package</phase>
  462. <goals>
  463. <goal>copy-resources</goal>
  464. </goals>
  465. <configuration>
  466. <!-- 资源文件输出目录 -->
  467. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  468. <resources>
  469. <resource>
  470. <directory>src/main/resources</directory>
  471. </resource>
  472. </resources>
  473. </configuration>
  474. </execution>
  475. </executions>
  476. </plugin>
  477. </plugins>
  478. </build>
  479. </project>