pom.xml 19 KB

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