pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.2.0.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.miyzh</groupId>
  12. <artifactId>yideb-proxy-srv</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>jm-upload</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <java.version>1.8</java.version>
  19. <spring.loaded.version>1.2.7.RELEASE</spring.loaded.version>
  20. <!-- mysql 数据库-->
  21. <mysql.version>5.1.38</mysql.version>
  22. <!--<mysql.version>8.0.11</mysql.version>-->
  23. <druid.version>1.1.16</druid.version>
  24. <springboot.mybatis.version>1.3.0</springboot.mybatis.version>
  25. <mybatis.generator.version>1.3.7</mybatis.generator.version>
  26. <!-- 工具类 -->
  27. <apache.commons-lang.version>3.2.1</apache.commons-lang.version>
  28. <apache.commons-io.version>2.5</apache.commons-io.version>
  29. <google.guava.version>21.0</google.guava.version>
  30. <!-- cache缓存 -->
  31. <ehcached.version>2.10.3</ehcached.version>
  32. <shiro.ehcache.version>1.3.2</shiro.ehcache.version>
  33. <java.version>1.8</java.version>
  34. <docker.image.prefix>springio</docker.image.prefix>
  35. <nacos-config-spring-boot.version>0.2.1</nacos-config-spring-boot.version>
  36. </properties>
  37. <dependencies>
  38. <dependency>
  39. <groupId>org.mybatis.spring.boot</groupId>
  40. <artifactId>mybatis-spring-boot-starter</artifactId>
  41. <version>2.1.3</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.github.pagehelper</groupId>
  45. <artifactId>pagehelper-spring-boot-starter</artifactId>
  46. <version>1.2.10</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-test</artifactId>
  51. <scope>test</scope>
  52. <exclusions>
  53. <exclusion>
  54. <groupId>org.junit.vintage</groupId>
  55. <artifactId>junit-vintage-engine</artifactId>
  56. </exclusion>
  57. </exclusions>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.alibaba.boot</groupId>
  61. <artifactId>nacos-config-spring-boot-starter</artifactId>
  62. <version>${nacos-config-spring-boot.version}</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>commons-collections</groupId>
  66. <artifactId>commons-collections</artifactId>
  67. <version>3.2.2</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.alibaba.boot</groupId>
  71. <artifactId>nacos-discovery-spring-boot-starter</artifactId>
  72. <version>${nacos-config-spring-boot.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-websocket</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.springframework.boot</groupId>
  80. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  81. </dependency>
  82. <!--redis-->
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-starter-data-redis</artifactId>
  86. </dependency>
  87. <!-- 添加jedis客户端 -->
  88. <dependency>
  89. <groupId>redis.clients</groupId>
  90. <artifactId>jedis</artifactId>
  91. </dependency>
  92. <!--数据库-->
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-jdbc</artifactId>
  96. </dependency>
  97. <!--数据库连接-->
  98. <dependency>
  99. <groupId>mysql</groupId>
  100. <artifactId>mysql-connector-java</artifactId>
  101. <version>8.0.15</version>
  102. <!-- <version>${mysql.version}</version>-->
  103. </dependency>
  104. <!-- alibaba的druid数据库连接池 -->
  105. <dependency>
  106. <groupId>com.alibaba</groupId>
  107. <artifactId>druid-spring-boot-starter</artifactId>
  108. <version>${druid.version}</version>
  109. </dependency>
  110. <!-- 工具类 -->
  111. <dependency>
  112. <groupId>org.apache.commons</groupId>
  113. <artifactId>commons-lang3</artifactId>
  114. <version>${apache.commons-lang.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>commons-io</groupId>
  118. <artifactId>commons-io</artifactId>
  119. <version>${apache.commons-io.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>junit</groupId>
  123. <artifactId>junit</artifactId>
  124. <version>4.12</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.alibaba</groupId>
  128. <artifactId>fastjson</artifactId>
  129. <version>1.2.30</version>
  130. </dependency>
  131. <!-- spring热部署-->
  132. <dependency>
  133. <groupId>org.springframework</groupId>
  134. <artifactId>springloaded</artifactId>
  135. <version>${spring.loaded.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.springframework.boot</groupId>
  139. <artifactId>spring-boot-devtools</artifactId>
  140. <optional>true</optional>
  141. </dependency>
  142. <!-- cglib 动态代理 -->
  143. <dependency>
  144. <groupId>cglib</groupId>
  145. <artifactId>cglib</artifactId>
  146. <version>3.1</version>
  147. </dependency>
  148. <!-- httpclient start -->
  149. <dependency>
  150. <groupId>org.apache.httpcomponents</groupId>
  151. <artifactId>httpmime</artifactId>
  152. <version>4.5</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.apache.httpcomponents</groupId>
  156. <artifactId>httpcore</artifactId>
  157. <version>4.4.5</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>commons-httpclient</groupId>
  161. <artifactId>commons-httpclient</artifactId>
  162. <version>3.0.1</version>
  163. </dependency>
  164. <!-- httpclient end -->
  165. <dependency>
  166. <groupId>org.aspectj</groupId>
  167. <artifactId>aspectjrt</artifactId>
  168. <version>1.9.4</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.springframework.boot</groupId>
  172. <artifactId>spring-boot-starter-aop</artifactId>
  173. </dependency>
  174. <!--rabbitmq-->
  175. <dependency>
  176. <groupId>org.springframework.boot</groupId>
  177. <artifactId>spring-boot-starter-amqp</artifactId>
  178. <version>1.5.2.RELEASE</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.springframework.boot</groupId>
  182. <artifactId>spring-boot-starter-web</artifactId>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.projectlombok</groupId>
  186. <artifactId>lombok</artifactId>
  187. <version>1.14.4</version>
  188. <optional>true</optional>
  189. <scope>provided</scope>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.springframework.boot</groupId>
  193. <artifactId>spring-boot-starter-tomcat</artifactId>
  194. <scope>provided</scope>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.springframework.boot</groupId>
  198. <artifactId>spring-boot-starter-test</artifactId>
  199. <scope>test</scope>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.bouncycastle</groupId>
  203. <artifactId>bcprov-jdk15on</artifactId>
  204. <version>1.56</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>com.fasterxml.jackson.dataformat</groupId>
  208. <artifactId>jackson-dataformat-xml</artifactId>
  209. </dependency>
  210. <dependency>
  211. <groupId>com.microsoft.sqlserver</groupId>
  212. <artifactId>mssql-jdbc</artifactId><!--sqlserver依赖 驱动jar-->
  213. <scope>runtime</scope>
  214. <version>6.4.0.jre8</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.apache.cxf</groupId>
  218. <artifactId>cxf-spring-boot-starter-jaxws</artifactId>
  219. <version>3.2.4</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>org.apache.cxf</groupId>
  223. <artifactId>cxf-rt-transports-http-jetty</artifactId>
  224. <version>3.2.4</version>
  225. </dependency>
  226. <dependency>
  227. <groupId>dom4j</groupId>
  228. <artifactId>dom4j</artifactId>
  229. <version>1.6.1</version>
  230. </dependency>
  231. <dependency>
  232. <groupId>org.apache.poi</groupId>
  233. <artifactId>poi-ooxml</artifactId>
  234. <version>3.14</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>org.apache.commons</groupId>
  238. <artifactId>commons-csv</artifactId>
  239. <version>1.5</version>
  240. </dependency>
  241. <!-- 处理excel和上面功能是一样的-->
  242. <dependency>
  243. <groupId>net.sourceforge.jexcelapi</groupId>
  244. <artifactId>jxl</artifactId>
  245. <version>2.6.10</version>
  246. </dependency>
  247. <dependency>
  248. <groupId>com.thoughtworks.xstream</groupId>
  249. <artifactId>xstream</artifactId>
  250. <version>1.4.9</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>org.springframework.boot</groupId>
  254. <artifactId>spring-boot-starter-security</artifactId>
  255. </dependency>
  256. </dependencies>
  257. <build>
  258. <plugins>
  259. <plugin>
  260. <groupId>org.springframework.boot</groupId>
  261. <artifactId>spring-boot-maven-plugin</artifactId>
  262. </plugin>
  263. <plugin>
  264. <groupId>org.mybatis.generator</groupId>
  265. <artifactId>mybatis-generator-maven-plugin</artifactId>
  266. <version>${mybatis.generator.version}</version>
  267. <executions>
  268. <execution>
  269. <id>Generate MyBatis Artifacts</id>
  270. <phase>deploy</phase>
  271. <goals>
  272. <goal>generate</goal>
  273. </goals>
  274. </execution>
  275. </executions>
  276. <dependencies>
  277. <dependency>
  278. <groupId>mysql</groupId>
  279. <artifactId>mysql-connector-java</artifactId>
  280. <version>${mysql.version}</version>
  281. </dependency>
  282. <dependency>
  283. <groupId>org.mybatis.generator</groupId>
  284. <artifactId>mybatis-generator-core</artifactId>
  285. <version>${mybatis.generator.version}</version>
  286. </dependency>
  287. </dependencies>
  288. <configuration>
  289. <!--允许移动生成的文件 -->
  290. <verbose>true</verbose>
  291. <!-- 是否覆盖 -->
  292. <overwrite>true</overwrite>
  293. <!-- 自动生成的配置 -->
  294. <configurationFile>
  295. src/main/resources/mybatis/mybatis-generator.xml</configurationFile>
  296. </configuration>
  297. </plugin>
  298. <plugin>
  299. <groupId>org.apache.maven.plugins</groupId>
  300. <artifactId>maven-surefire-plugin</artifactId>
  301. <version>2.18.1</version>
  302. <configuration>
  303. <skipTests>true</skipTests>
  304. </configuration>
  305. </plugin>
  306. <plugin>
  307. <groupId>org.apache.maven.plugins</groupId>
  308. <artifactId>maven-compiler-plugin</artifactId>
  309. <version>3.1</version>
  310. <configuration>
  311. <source>1.8</source>
  312. <target>1.8</target>
  313. <encoding>UTF-8</encoding>
  314. </configuration>
  315. </plugin>
  316. <plugin>
  317. <groupId>com.spotify</groupId>
  318. <artifactId>docker-maven-plugin</artifactId>
  319. <version>0.4.13</version>
  320. <configuration>
  321. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  322. <dockerDirectory>src/main/docker</dockerDirectory>
  323. <resources>
  324. <resource>
  325. <targetPath>/</targetPath>
  326. <directory>${project.build.directory}</directory>
  327. <include>${project.build.finalName}.jar</include>
  328. </resource>
  329. </resources>
  330. </configuration>
  331. </plugin>
  332. <plugin>
  333. <groupId>com.spotify</groupId>
  334. <artifactId>docker-maven-plugin</artifactId>
  335. <version>1.0.0</version>
  336. <configuration>
  337. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  338. <dockerDirectory>src/main/docker</dockerDirectory>
  339. <resources>
  340. <resource>
  341. <targetPath>/</targetPath>
  342. <directory>${project.build.directory}</directory>
  343. <include>${project.build.finalName}.jar</include>
  344. </resource>
  345. </resources>
  346. </configuration>
  347. </plugin>
  348. </plugins>
  349. </build>
  350. </project>