pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.yihu.jw</groupId>
  7. <artifactId>wlyy-parent-pom</artifactId>
  8. <version>2.4.0</version>
  9. <relativePath>../../wlyy-parent-pom/pom.xml</relativePath>
  10. </parent>
  11. <groupId>com.yihu.jw</groupId>
  12. <artifactId>svr-statistics-hlw</artifactId>
  13. <packaging>jar</packaging>
  14. <version>${project.parent.version}</version>
  15. <name>svr-statistics-hlw</name>
  16. <properties>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <version.commons-bean-utils>1.9.2</version.commons-bean-utils>
  19. <version.commons-codec>1.9</version.commons-codec>
  20. <version.commons-collections>3.2.1</version.commons-collections>
  21. <version.commons-compress>1.9</version.commons-compress>
  22. <version.commons-dbcp2>2.1.1</version.commons-dbcp2>
  23. <version.commons-dbutils>1.6</version.commons-dbutils>
  24. <version.commons-io>2.4</version.commons-io>
  25. <version.commons-lang3>3.2.1</version.commons-lang3>
  26. <version.commons-pool2>2.4.2</version.commons-pool2>
  27. <version.hibernate>4.3.11.Final</version.hibernate>
  28. <version.hibernate-annotations>4.0.5.Final</version.hibernate-annotations>
  29. <version.hibernate-jpa-api>1.0.0.Final</version.hibernate-jpa-api>
  30. <version.http-client>4.5.1</version.http-client>
  31. <version.http-core>4.4.3</version.http-core>
  32. <version.java>1.8</version.java>
  33. <version.jedis>2.9.0</version.jedis>
  34. <version.jcl-over-slf4j>1.7.19</version.jcl-over-slf4j>
  35. <version.jul-over-slf4j>1.7.21</version.jul-over-slf4j>
  36. <version.joda-time>2.8.2</version.joda-time>
  37. <version.junit>4.12</version.junit>
  38. <version.log4j2>2.4.1</version.log4j2>
  39. <version.logback>1.1.7</version.logback>
  40. <version.mysql>5.1.38</version.mysql>
  41. <version.quartz>2.2.3</version.quartz>
  42. <version.servlet-api>3.1.0</version.servlet-api>
  43. <version.slf4j>1.7.21</version.slf4j>
  44. <version.tomcat-embed>8.0.28</version.tomcat-embed>
  45. <version.elasticsearch>2.4.6</version.elasticsearch>
  46. <version.jest>2.4.0</version.jest>
  47. </properties>
  48. <dependencies>
  49. <!-- 支持Tomcat启动 -->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-web</artifactId>
  53. <exclusions>
  54. <exclusion>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-tomcat</artifactId>
  57. </exclusion>
  58. </exclusions>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-tomcat</artifactId>
  63. <!-- <scope>provided</scope>-->
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-data-redis</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.yihu.jw</groupId>
  71. <artifactId>common-entity</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.security.oauth.boot</groupId>
  75. <artifactId>spring-security-oauth2-autoconfigure</artifactId>
  76. </dependency>
  77. <!--elasticsearch start-->
  78. <dependency>
  79. <groupId>com.yihu.jw</groupId>
  80. <artifactId>elasticsearch-starter</artifactId>
  81. <version>${version.wlyy-common}</version>
  82. </dependency>
  83. <!-- <dependency>
  84. <groupId>org.elasticsearch</groupId>
  85. <artifactId>elasticsearch</artifactId>
  86. <version>${version.elasticsearch}</version>
  87. </dependency>-->
  88. <!-- <dependency>
  89. <groupId>io.searchbox</groupId>
  90. <artifactId>jest</artifactId>
  91. <version>${version.jest}</version>
  92. </dependency>-->
  93. <!--<dependency>
  94. <groupId>org.elasticsearch.plugin</groupId>
  95. <artifactId>shield</artifactId>
  96. <version>${version.elasticsearch}</version>
  97. </dependency>-->
  98. <!--注释掉就不会读取git的配置,只会读取yml中的配置-->
  99. <dependency>
  100. <groupId>org.springframework.cloud</groupId>
  101. <artifactId>spring-cloud-starter-config</artifactId>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.springframework.boot</groupId>
  105. <artifactId>spring-boot-starter-activemq</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-starter-mail</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.springframework.security</groupId>
  113. <artifactId>spring-security-core</artifactId>
  114. <version>RELEASE</version>
  115. <scope>compile</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>commons-dbutils</groupId>
  119. <artifactId>commons-dbutils</artifactId>
  120. <version>${version.commons-dbutils}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>commons-collections</groupId>
  124. <artifactId>commons-collections</artifactId>
  125. <version>${version.commons-collections}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.apache.commons</groupId>
  129. <artifactId>commons-compress</artifactId>
  130. <version>${version.commons-compress}</version>
  131. </dependency>
  132. <!--Miscellaneous-->
  133. <dependency>
  134. <groupId>org.quartz-scheduler</groupId>
  135. <artifactId>quartz</artifactId>
  136. <version>${version.quartz}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.quartz-scheduler</groupId>
  140. <artifactId>quartz-jobs</artifactId>
  141. <version>${version.quartz}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>junit</groupId>
  145. <artifactId>junit</artifactId>
  146. <version>${version.junit}</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.yihu</groupId>
  150. <artifactId>mysql-starter</artifactId>
  151. <version>${version.yihu-common}</version>
  152. <exclusions>
  153. <exclusion>
  154. <groupId>org.apache.tomcat</groupId>
  155. <artifactId>tomcat-jdbc</artifactId>
  156. </exclusion>
  157. </exclusions>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.slf4j</groupId>
  161. <artifactId>jcl-over-slf4j</artifactId>
  162. <version>${version.jcl-over-slf4j}</version>
  163. <exclusions>
  164. <exclusion>
  165. <groupId>org.slf4j</groupId>
  166. <artifactId>slf4j-jdk14</artifactId>
  167. </exclusion>
  168. </exclusions>
  169. </dependency>
  170. <!--The single log BACKEND-->
  171. <dependency>
  172. <groupId>ch.qos.logback</groupId>
  173. <artifactId>logback-classic</artifactId>
  174. <version>${version.logback}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>com.yihu.jw</groupId>
  178. <artifactId>swagger-starter</artifactId>
  179. <version>2.4.0</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>io.github.swagger2markup</groupId>
  183. <artifactId>swagger2markup</artifactId>
  184. <version>1.3.2</version>
  185. <exclusions>
  186. <exclusion>
  187. <artifactId>mailapi</artifactId>
  188. <groupId>javax.mail</groupId>
  189. </exclusion>
  190. </exclusions>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.json</groupId>
  194. <artifactId>json</artifactId>
  195. <version>20151123</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>net.sf.json-lib</groupId>
  199. <artifactId>json-lib</artifactId>
  200. <version>2.4</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>com.alibaba</groupId>
  204. <artifactId>druid</artifactId>
  205. <version>${version.druid}</version>
  206. </dependency>
  207. <!-- <dependency>
  208. <groupId>org.nlpcn</groupId>
  209. <artifactId>elasticsearch-sql</artifactId>
  210. <version>2.4.2.1</version>
  211. </dependency>-->
  212. <dependency>
  213. <groupId>org.elasticsearch.plugin</groupId>
  214. <artifactId>delete-by-query</artifactId>
  215. <version>2.4.1</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>com.alibaba</groupId>
  219. <artifactId>fastjson</artifactId>
  220. <version>1.2.17</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>com.zaxxer</groupId>
  224. <artifactId>HikariCP</artifactId>
  225. </dependency>
  226. <!--oracle驱动-->
  227. <dependency>
  228. <groupId>com.oracle</groupId>
  229. <artifactId>ojdbc6</artifactId>
  230. <version>11.2.0.3</version>
  231. </dependency>
  232. </dependencies>
  233. <build>
  234. <finalName>svr-statistics-hlw</finalName>
  235. <plugins>
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-jar-plugin</artifactId>
  239. <configuration>
  240. <archive>
  241. <!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
  242. <addMavenDescriptor>false</addMavenDescriptor>
  243. <manifest>
  244. <!-- 是否要把第三方jar加入到类构建路径 -->
  245. <addClasspath>true</addClasspath>
  246. <!-- 外部依赖jar包的最终位置 -->
  247. <classpathPrefix>lib/</classpathPrefix>
  248. <mainClass>com.yihu.jw.StatisticsHlwApplication</mainClass>
  249. </manifest>
  250. </archive>
  251. </configuration>
  252. </plugin>
  253. <!--拷贝依赖到jar外面的lib目录-->
  254. <plugin>
  255. <groupId>org.apache.maven.plugins</groupId>
  256. <artifactId>maven-dependency-plugin</artifactId>
  257. <executions>
  258. <execution>
  259. <id>copy-lib</id>
  260. <phase>package</phase>
  261. <goals>
  262. <goal>copy-dependencies</goal>
  263. </goals>
  264. <configuration>
  265. <!-- 依赖包输出目录,将来不打进jar包里 -->
  266. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  267. <excludeTransitive>false</excludeTransitive>
  268. <stripVersion>false</stripVersion>
  269. <includeScope>runtime</includeScope>
  270. </configuration>
  271. </execution>
  272. </executions>
  273. </plugin>
  274. <!--指定配置文件,将resources打成外部resource-->
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-jar-plugin</artifactId>
  278. <configuration>
  279. <archive>
  280. <!-- 指定配置文件目录,这样jar运行时会去找到同目录下的resources文件夹下查找 -->
  281. <manifestEntries>
  282. <Class-Path>resources/</Class-Path>
  283. </manifestEntries>
  284. </archive>
  285. <!-- 打包时忽略的文件(也就是不打进jar包里的文件) -->
  286. <excludes>
  287. <exclude>**/*.yml</exclude>
  288. <exclude>**/*.xml</exclude>
  289. </excludes>
  290. </configuration>
  291. </plugin>
  292. <!-- 拷贝资源文件 外面的resource目录-->
  293. <plugin>
  294. <artifactId>maven-resources-plugin</artifactId>
  295. <executions>
  296. <execution>
  297. <id>copy-dependencies</id>
  298. <phase>package</phase>
  299. <goals>
  300. <goal>copy-resources</goal>
  301. </goals>
  302. <configuration>
  303. <!-- 资源文件输出目录 -->
  304. <outputDirectory>${project.build.directory}/resources</outputDirectory>
  305. <resources>
  306. <resource>
  307. <directory>src/main/resources</directory>
  308. </resource>
  309. </resources>
  310. </configuration>
  311. </execution>
  312. </executions>
  313. </plugin>
  314. </plugins>
  315. </build>
  316. </project>