河湖长app
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

342 Zeilen
12KB

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