河湖长app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

383 lines
13KB

  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.1.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.taauav</groupId>
  12. <artifactId>lishui</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>lishui</name>
  15. <description>MSDAMP project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <spring.boot.version>2.1.11.RELEASE</spring.boot.version>
  19. <!-- mybatis-plus.version -->
  20. <mybatis-plus.version>3.2.0</mybatis-plus.version>
  21. <!-- swagger.version -->
  22. <swagger.version>2.9.2</swagger.version>
  23. </properties>
  24. <dependencies>
  25. <!-- 包含 mvc,aop 等jar资源 -->
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. <exclusions>
  30. <!-- 切换log4j2日志读取 -->
  31. <exclusion>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-logging</artifactId>
  34. </exclusion>
  35. </exclusions>
  36. </dependency>
  37. <!-- 配置 log4j2 -->
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-log4j2</artifactId>
  41. </dependency>
  42. <!-- 加上这个才能辨认到log4j2.yml文件 -->
  43. <dependency>
  44. <groupId>com.fasterxml.jackson.dataformat</groupId>
  45. <artifactId>jackson-dataformat-yaml</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.springframework.boot</groupId>
  49. <artifactId>spring-boot-starter-actuator</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-data-jdbc</artifactId>
  54. </dependency>
  55. <!-- reids -->
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-data-redis</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>redis.clients</groupId>
  62. <artifactId>jedis</artifactId>
  63. <version>2.9.0</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.commons</groupId>
  67. <artifactId>commons-pool2</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-mail</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.mybatis.spring.boot</groupId>
  75. <artifactId>mybatis-spring-boot-starter</artifactId>
  76. <version>2.1.1</version>
  77. </dependency>
  78. <!--
  79. <dependency>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-devtools</artifactId>
  82. <scope>runtime</scope>
  83. <optional>true</optional>
  84. </dependency>
  85. -->
  86. <dependency>
  87. <groupId>mysql</groupId>
  88. <artifactId>mysql-connector-java</artifactId>
  89. <scope>runtime</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-configuration-processor</artifactId>
  94. <optional>true</optional>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.projectlombok</groupId>
  98. <artifactId>lombok</artifactId>
  99. <version>1.18.10</version>
  100. <scope>provided</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-starter-test</artifactId>
  105. <scope>test</scope>
  106. <exclusions>
  107. <exclusion>
  108. <groupId>org.junit.vintage</groupId>
  109. <artifactId>junit-vintage-engine</artifactId>
  110. </exclusion>
  111. </exclusions>
  112. </dependency>
  113. <dependency>
  114. <groupId>org.springframework.boot</groupId>
  115. <artifactId>spring-boot-starter-validation</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.alibaba</groupId>
  119. <artifactId>fastjson</artifactId>
  120. <version>1.2.62</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.mybatis.generator</groupId>
  124. <artifactId>mybatis-generator-core</artifactId>
  125. <version>1.3.7</version>
  126. </dependency>
  127. <!--apache.commons.lang3-->
  128. <dependency>
  129. <groupId>org.apache.commons</groupId>
  130. <artifactId>commons-lang3</artifactId>
  131. </dependency>
  132. <!--你可以把这个工具看成是java.util的扩展-->
  133. <dependency>
  134. <groupId>org.apache.commons</groupId>
  135. <artifactId>commons-collections4</artifactId>
  136. <version>4.1</version>
  137. </dependency>
  138. <!--apache.codec:编码方法的工具类包
  139. https://blog.csdn.net/u012881904/article/details/52767853-->
  140. <dependency>
  141. <groupId>commons-codec</groupId>
  142. <artifactId>commons-codec</artifactId>
  143. </dependency>
  144. <!-- 权限管理shiro-->
  145. <dependency>
  146. <groupId>org.apache.shiro</groupId>
  147. <artifactId>shiro-spring</artifactId>
  148. <version>1.4.0</version>
  149. </dependency>
  150. <!-- 权限管理-缓存shiro-redis-->
  151. <dependency>
  152. <groupId>org.crazycake</groupId>
  153. <artifactId>shiro-redis</artifactId>
  154. <version>3.1.0</version>
  155. </dependency>
  156. <!--duid依赖-->
  157. <!-- https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter -->
  158. <dependency>
  159. <groupId>com.alibaba</groupId>
  160. <artifactId>druid-spring-boot-starter</artifactId>
  161. <version>1.1.10</version>
  162. </dependency>
  163. <!--mybatis-plus
  164. https://mp.baomidou.com/guide-->
  165. <dependency>
  166. <groupId>com.baomidou</groupId>
  167. <artifactId>mybatis-plus-boot-starter</artifactId>
  168. <version>${mybatis-plus.version}</version>
  169. </dependency>
  170. <!--mybatis-plus 代码自动生成 -->
  171. <dependency>
  172. <groupId>com.baomidou</groupId>
  173. <artifactId>mybatis-plus-generator</artifactId>
  174. <version>${mybatis-plus.version}</version>
  175. </dependency>
  176. <!-- freemarker 模板引擎 -->
  177. <!-- https://mvnrepository.com/artifact/org.freemarker/freemarker -->
  178. <dependency>
  179. <groupId>org.freemarker</groupId>
  180. <artifactId>freemarker</artifactId>
  181. <version>2.3.29</version>
  182. </dependency>
  183. <!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 加强版-->
  184. <dependency>
  185. <groupId>com.github.xiaoymin</groupId>
  186. <artifactId>knife4j-spring-boot-starter</artifactId>
  187. <version>1.9.6</version>
  188. </dependency>
  189. <!-- 图片压缩 -->
  190. <dependency>
  191. <groupId>net.coobird</groupId>
  192. <artifactId>thumbnailator</artifactId>
  193. <version>0.4.8</version>
  194. </dependency>
  195. <!--Hutool是一个小而全的Java工具类库 https://mvnrepository.com/artifact/cn.hutool/hutool-core -->
  196. <dependency>
  197. <groupId>cn.hutool</groupId>
  198. <artifactId>hutool-core</artifactId>
  199. <version>5.0.6</version>
  200. </dependency>
  201. <!--图片gps-->
  202. <dependency>
  203. <groupId>com.drewnoakes</groupId>
  204. <artifactId>metadata-extractor</artifactId>
  205. <version>2.6.2</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>org.springframework</groupId>
  209. <artifactId>spring-test</artifactId>
  210. <version>5.1.7.RELEASE</version>
  211. <scope>compile</scope>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.apache.commons</groupId>
  215. <artifactId>commons-io</artifactId>
  216. <version>1.3.2</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.apache.httpcomponents</groupId>
  220. <artifactId>httpcore</artifactId>
  221. <version>4.4.5</version>
  222. </dependency>
  223. <!-- JWT依赖 -->
  224. <dependency>
  225. <groupId>io.jsonwebtoken</groupId>
  226. <artifactId>jjwt</artifactId>
  227. <version>0.9.1</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>com.auth0</groupId>
  231. <artifactId>java-jwt</artifactId>
  232. <version>3.4.0</version>
  233. </dependency>
  234. </dependencies>
  235. <profiles>
  236. <profile>
  237. <!-- 本地开发环境 -->
  238. <id>local</id>
  239. <properties>
  240. <package.environment>local</package.environment>
  241. </properties>
  242. <activation>
  243. <activeByDefault>true</activeByDefault>
  244. </activation>
  245. </profile>
  246. <profile>
  247. <!--开发测试环境 -->
  248. <id>dev</id>
  249. <properties>
  250. <package.environment>dev</package.environment>
  251. </properties>
  252. </profile>
  253. <profile>
  254. <!-- 测试环境 -->
  255. <id>test</id>
  256. <properties>
  257. <package.environment>test</package.environment>
  258. </properties>
  259. </profile>
  260. <profile>
  261. <!-- 生产环境 -->
  262. <id>prod</id>
  263. <properties>
  264. <package.environment>prod</package.environment>
  265. </properties>
  266. </profile>
  267. </profiles>
  268. <build>
  269. <finalName>lishui</finalName>
  270. <resources>
  271. <resource>
  272. <directory>src/main/resources</directory>
  273. <filtering>true</filtering>
  274. <excludes>
  275. <exclude>application-local.yml</exclude>
  276. <exclude>application-dev.yml</exclude>
  277. <exclude>application-test.yml</exclude>
  278. <exclude>application-prod.yml</exclude>
  279. </excludes>
  280. </resource>
  281. <resource>
  282. <directory>src/main/java</directory>
  283. <includes>
  284. <include>**/*.*</include>
  285. </includes>
  286. <excludes>
  287. <exclude>**/*.java</exclude>
  288. </excludes>
  289. </resource>
  290. <resource>
  291. <directory>src/main/resources</directory>
  292. <filtering>true</filtering>
  293. <includes>
  294. <include>application-${package.environment}.yml</include>
  295. </includes>
  296. </resource>
  297. </resources>
  298. <pluginManagement>
  299. <plugins>
  300. <plugin>
  301. <groupId>org.springframework.boot</groupId>
  302. <artifactId>spring-boot-maven-plugin</artifactId>
  303. <version>${spring.boot.version}</version>
  304. <configuration>
  305. <finalName>${project.build.finalName}</finalName>
  306. </configuration>
  307. <executions>
  308. <execution>
  309. <goals>
  310. <goal>repackage</goal>
  311. </goals>
  312. </execution>
  313. </executions>
  314. </plugin>
  315. </plugins>
  316. </pluginManagement>
  317. <plugins>
  318. <plugin>
  319. <groupId>org.springframework.boot</groupId>
  320. <artifactId>spring-boot-maven-plugin</artifactId>
  321. </plugin>
  322. <!-- mybatis generator 自动生成代码插件 -->
  323. <plugin>
  324. <groupId>org.mybatis.generator</groupId>
  325. <artifactId>mybatis-generator-maven-plugin</artifactId>
  326. <version>1.3.1</version>
  327. <configuration>
  328. <configurationFile>${basedir}/src/main/resources/generator/generatorConfig.xml</configurationFile>
  329. <overwrite>true</overwrite>
  330. <verbose>true</verbose>
  331. </configuration>
  332. </plugin>
  333. <plugin>
  334. <groupId>org.apache.maven.plugins</groupId>
  335. <artifactId>maven-surefire-plugin</artifactId>
  336. <version>2.19</version>
  337. <configuration>
  338. <skipTests>true</skipTests>
  339. </configuration>
  340. </plugin>
  341. <plugin>
  342. <groupId>org.apache.maven.plugins</groupId>
  343. <artifactId>maven-jar-plugin</artifactId>
  344. <version>3.2.0</version>
  345. <configuration>
  346. <archive>
  347. <addMavenDescriptor>false</addMavenDescriptor>
  348. </archive>
  349. <webResources>
  350. <directory>src/main/resoreces/${package.environment}</directory>
  351. <targetPath>WEB-INF/classes</targetPath>
  352. <filtering>true</filtering>
  353. </webResources>
  354. </configuration>
  355. </plugin>
  356. </plugins>
  357. </build>
  358. </project>