pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>cn.aiyangniu</groupId>
  7. <artifactId>provider-service</artifactId>
  8. <version>1.0.0</version>
  9. <properties>
  10. <maven.compiler.source>8</maven.compiler.source>
  11. <maven.compiler.target>8</maven.compiler.target>
  12. </properties>
  13. <!-- 继承SpringBoot父项目 -->
  14. <parent>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-parent</artifactId>
  17. <version>2.7.5</version>
  18. </parent>
  19. <dependencies>
  20. <!-- 导入starter-web项目 -->
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-web</artifactId>
  24. <exclusions>
  25. <exclusion>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-tomcat</artifactId>
  28. </exclusion>
  29. </exclusions>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-undertow</artifactId>
  34. </dependency>
  35. <!-- 导入单元测试的包 -->
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-test</artifactId>
  39. <scope>test</scope>
  40. </dependency>
  41. <!-- 导入druid包,配置druid配置 -->
  42. <dependency>
  43. <groupId>com.alibaba</groupId>
  44. <artifactId>druid</artifactId>
  45. <version>1.2.14</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.alibaba</groupId>
  49. <artifactId>druid-spring-boot-starter</artifactId>
  50. <version>1.2.14</version>
  51. </dependency>
  52. <!-- 导入Mybatis Plus包 -->
  53. <dependency>
  54. <groupId>com.baomidou</groupId>
  55. <artifactId>mybatis-plus-boot-starter</artifactId>
  56. <version>3.5.2</version>
  57. </dependency>
  58. <!-- 导入MySQL工具包 -->
  59. <dependency>
  60. <groupId>mysql</groupId>
  61. <artifactId>mysql-connector-java</artifactId>
  62. <version>8.0.31</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-data-redis</artifactId>
  67. <version>2.7.5</version>
  68. </dependency>
  69. <!-- 导入FastJson工具包 -->
  70. <dependency>
  71. <groupId>com.alibaba</groupId>
  72. <artifactId>fastjson</artifactId>
  73. <version>2.0.17</version>
  74. </dependency>
  75. <!-- 导入pinyin4j工具包 -->
  76. <dependency>
  77. <groupId>com.belerweb</groupId>
  78. <artifactId>pinyin4j</artifactId>
  79. <version>2.5.1</version>
  80. </dependency>
  81. <!-- 导入getter/setter方法自动加载的包 -->
  82. <dependency>
  83. <groupId>org.projectlombok</groupId>
  84. <artifactId>lombok</artifactId>
  85. <version>1.18.24</version>
  86. </dependency>
  87. <!-- 导入通用上传commons-fileupload工具包 -->
  88. <dependency>
  89. <groupId>commons-fileupload</groupId>
  90. <artifactId>commons-fileupload</artifactId>
  91. <version>1.4</version>
  92. </dependency>
  93. <!-- 导入commons-io工具包 -->
  94. <dependency>
  95. <groupId>commons-io</groupId>
  96. <artifactId>commons-io</artifactId>
  97. <version>2.11.0</version>
  98. </dependency>
  99. <!-- 导入commons-lang3工具包 -->
  100. <dependency>
  101. <groupId>org.apache.commons</groupId>
  102. <artifactId>commons-lang3</artifactId>
  103. <version>3.12.0</version>
  104. </dependency>
  105. <!-- 导入slf4j-api工具包 -->
  106. <dependency>
  107. <groupId>org.slf4j</groupId>
  108. <artifactId>slf4j-api</artifactId>
  109. <version>1.7.30</version>
  110. </dependency>
  111. <!-- 导入logback-core工具包 -->
  112. <dependency>
  113. <groupId>ch.qos.logback</groupId>
  114. <artifactId>logback-core</artifactId>
  115. <version>1.2.3</version>
  116. </dependency>
  117. <!-- 导入logback-classic工具包 -->
  118. <dependency>
  119. <groupId>ch.qos.logback</groupId>
  120. <artifactId>logback-classic</artifactId>
  121. <version>1.2.3</version>
  122. </dependency>
  123. <!--swagger3-->
  124. <dependency>
  125. <groupId>io.springfox</groupId>
  126. <artifactId>springfox-boot-starter</artifactId>
  127. <version>3.0.0</version>
  128. </dependency>
  129. </dependencies>
  130. <profiles>
  131. <profile>
  132. <id>dev</id>
  133. <properties>
  134. <profile>dev</profile>
  135. </properties>
  136. <activation>
  137. <!-- 默认环境 -->
  138. <activeByDefault>true</activeByDefault>
  139. </activation>
  140. </profile>
  141. <profile>
  142. <id>pro</id>
  143. <properties>
  144. <profile>pro</profile>
  145. </properties>
  146. </profile>
  147. </profiles>
  148. <build>
  149. <!-- 产生的构件的文件名,默认值是${artifactId}-${version} -->
  150. <finalName>provider-service</finalName>
  151. <plugins>
  152. <!-- 控制jdk版本 -->
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-compiler-plugin</artifactId>
  156. <version>3.10.1</version>
  157. <configuration>
  158. <source>1.8</source>
  159. <target>1.8</target>
  160. <encoding>UTF-8</encoding>
  161. <compilerArguments>
  162. <verbose />
  163. <bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath>
  164. </compilerArguments>
  165. </configuration>
  166. </plugin>
  167. <!-- 导入生成Jar文件插件,可以将应用打包成一个可执行的Jar包,直接使用java -jar命令执行 -->
  168. <plugin>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-maven-plugin</artifactId>
  171. </plugin>
  172. </plugins>
  173. <resources>
  174. <resource>
  175. <directory>src/main/resources</directory>
  176. <includes>
  177. <include>**/*.*</include>
  178. </includes>
  179. <filtering>true</filtering>
  180. </resource>
  181. </resources>
  182. </build>
  183. </project>