pom.xml 19 KB

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