pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  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>com.coffee</groupId>
  7. <artifactId>coffee-boot</artifactId>
  8. <name>${project.artifactId}</name>
  9. <packaging>pom</packaging>
  10. <version>1.0</version>
  11. <properties>
  12. <java.version>1.8</java.version>
  13. <maven.compiler.source>1.8</maven.compiler.source>
  14. <maven.compiler.target>1.8</maven.compiler.target>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <versions-maven-plugin.version>2.7</versions-maven-plugin.version>
  18. <skipTests>true</skipTests>
  19. <coffee.project.version>1.0</coffee.project.version>
  20. <hutool.version>5.7.21</hutool.version>
  21. <guava.version>30.1.1-jre</guava.version>
  22. <druid.version>1.2.8</druid.version>
  23. <spring-boot.version>2.5.8</spring-boot.version>
  24. <mybatis-plus.version>3.5.1</mybatis-plus.version>
  25. <mybatis-plus-generator.version>3.4.1</mybatis-plus-generator.version>
  26. <mysql-connector.version>8.0.27</mysql-connector.version>
  27. <fastjson.version>1.2.79</fastjson.version>
  28. <easyexcel.version>3.0.5</easyexcel.version>
  29. <minio.version>8.3.7</minio.version>
  30. <okhttp.version>4.9.3</okhttp.version>
  31. <velocity.version>2.3</velocity.version>
  32. <log4j2.version>2.17.1</log4j2.version>
  33. <satoken.version>1.29.0</satoken.version>
  34. <springfox.version>3.0.0</springfox.version>
  35. <tio.version>3.6.0.v20200315-RELEASE</tio.version>
  36. <jython.version>2.7.1</jython.version>
  37. <knife4j.version>2.0.7</knife4j.version>
  38. <redisson.version>3.17.0</redisson.version>
  39. <captcha.version>1.6.2</captcha.version>
  40. </properties>
  41. <modules>
  42. <module>coffee-codegen</module>
  43. <module>coffee-admin</module>
  44. <module>coffee-framework</module>
  45. <module>coffee-common</module>
  46. <module>coffee-system</module>
  47. <module>coffee-oss</module>
  48. </modules>
  49. <dependencies>
  50. <!-- test -->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-test</artifactId>
  54. <scope>test</scope>
  55. </dependency>
  56. <!-- lombok -->
  57. <dependency>
  58. <groupId>org.projectlombok</groupId>
  59. <artifactId>lombok</artifactId>
  60. </dependency>
  61. </dependencies>
  62. <!-- 依赖管理 -->
  63. <dependencyManagement>
  64. <dependencies>
  65. <!-- https://mvnrepository.com/artifact/org.python/jython-standalone -->
  66. <dependency>
  67. <groupId>org.python</groupId>
  68. <artifactId>jython-standalone</artifactId>
  69. <version>${jython.version}</version>
  70. </dependency>
  71. <!-- spring boot -->
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-dependencies</artifactId>
  75. <version>${spring-boot.version}</version>
  76. <type>pom</type>
  77. <scope>import</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.t-io</groupId>
  81. <artifactId>tio-websocket-spring-boot-starter</artifactId>
  82. <version>${tio.version}</version>
  83. </dependency>
  84. <!--swagger模块 -->
  85. <dependency>
  86. <groupId>com.github.xiaoymin</groupId>
  87. <artifactId>knife4j-spring-boot-starter</artifactId>
  88. <version>${knife4j.version}</version>
  89. </dependency>
  90. <!--阿里数据库连接池 -->
  91. <dependency>
  92. <groupId>com.alibaba</groupId>
  93. <artifactId>druid-spring-boot-starter</artifactId>
  94. <version>${druid.version}</version>
  95. </dependency>
  96. <!-- web 模块 -->
  97. <dependency>
  98. <groupId>org.springframework.boot</groupId>
  99. <artifactId>spring-boot-starter-web</artifactId>
  100. <version>${spring-boot.version}</version>
  101. </dependency>
  102. <!-- mybatis plus -->
  103. <dependency>
  104. <groupId>com.baomidou</groupId>
  105. <artifactId>mybatis-plus-boot-starter</artifactId>
  106. <version>${mybatis-plus.version}</version>
  107. </dependency>
  108. <!-- mybatis plus generator -->
  109. <dependency>
  110. <groupId>com.baomidou</groupId>
  111. <artifactId>mybatis-plus-generator</artifactId>
  112. <version>${mybatis-plus-generator.version}</version>
  113. </dependency>
  114. <!-- MySQL -->
  115. <dependency>
  116. <groupId>mysql</groupId>
  117. <artifactId>mysql-connector-java</artifactId>
  118. <version>${mysql-connector.version}</version>
  119. </dependency>
  120. <!-- hutool -->
  121. <dependency>
  122. <groupId>cn.hutool</groupId>
  123. <artifactId>hutool-all</artifactId>
  124. <version>${hutool.version}</version>
  125. </dependency>
  126. <!-- guava -->
  127. <dependency>
  128. <groupId>com.google.guava</groupId>
  129. <artifactId>guava</artifactId>
  130. <version>${guava.version}</version>
  131. </dependency>
  132. <!-- fastjson -->
  133. <dependency>
  134. <groupId>com.alibaba</groupId>
  135. <artifactId>fastjson</artifactId>
  136. <version>${fastjson.version}</version>
  137. </dependency>
  138. <!-- easyexcel -->
  139. <dependency>
  140. <groupId>com.alibaba</groupId>
  141. <artifactId>easyexcel</artifactId>
  142. <version>${easyexcel.version}</version>
  143. </dependency>
  144. <!-- velocity -->
  145. <dependency>
  146. <groupId>org.apache.velocity</groupId>
  147. <artifactId>velocity-engine-core</artifactId>
  148. <version>${velocity.version}</version>
  149. </dependency>
  150. <!-- minio -->
  151. <dependency>
  152. <groupId>io.minio</groupId>
  153. <artifactId>minio</artifactId>
  154. <version>${minio.version}</version>
  155. </dependency>
  156. <!-- okhttp -->
  157. <dependency>
  158. <groupId>com.squareup.okhttp3</groupId>
  159. <artifactId>okhttp</artifactId>
  160. <version>${okhttp.version}</version>
  161. </dependency>
  162. <!-- log4j -->
  163. <dependency>
  164. <groupId>org.apache.logging.log4j</groupId>
  165. <artifactId>log4j-api</artifactId>
  166. <version>${log4j2.version}</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.apache.logging.log4j</groupId>
  170. <artifactId>log4j-to-slf4j</artifactId>
  171. <version>${log4j2.version}</version>
  172. </dependency>
  173. <!-- sa-token -->
  174. <dependency>
  175. <groupId>cn.dev33</groupId>
  176. <artifactId>sa-token-spring-boot-starter</artifactId>
  177. <version>${satoken.version}</version>
  178. </dependency>
  179. <!-- sa-token redis -->
  180. <dependency>
  181. <groupId>cn.dev33</groupId>
  182. <artifactId>sa-token-dao-redis-jackson</artifactId>
  183. <version>${satoken.version}</version>
  184. </dependency>
  185. <!-- 核心模块 -->
  186. <dependency>
  187. <groupId>com.coffee</groupId>
  188. <artifactId>coffee-framework</artifactId>
  189. <version>${coffee.project.version}</version>
  190. </dependency>
  191. <!-- 通用模块 -->
  192. <dependency>
  193. <groupId>com.coffee</groupId>
  194. <artifactId>coffee-common</artifactId>
  195. <version>${coffee.project.version}</version>
  196. </dependency>
  197. <!-- 系统模块 -->
  198. <dependency>
  199. <groupId>com.coffee</groupId>
  200. <artifactId>coffee-system</artifactId>
  201. <version>${coffee.project.version}</version>
  202. </dependency>
  203. <!-- OSS文件存储模块 -->
  204. <dependency>
  205. <groupId>com.coffee</groupId>
  206. <artifactId>coffee-oss</artifactId>
  207. <version>${coffee.project.version}</version>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.jboss.marshalling</groupId>
  211. <artifactId>jboss-marshalling</artifactId>
  212. <version>2.0.9.Final</version>
  213. </dependency>
  214. <!-- redisson配置 -->
  215. <dependency>
  216. <groupId>org.redisson</groupId>
  217. <artifactId>redisson-spring-boot-starter</artifactId>
  218. <version>${redisson.version}</version>
  219. <exclusions>
  220. <exclusion>
  221. <groupId>org.springframework.boot</groupId>
  222. <artifactId>spring-boot-starter-web</artifactId>
  223. </exclusion>
  224. </exclusions>
  225. </dependency>
  226. <!--验证码配置-->
  227. <dependency>
  228. <groupId>com.github.whvcse</groupId>
  229. <artifactId>easy-captcha</artifactId>
  230. <version>${captcha.version}</version>
  231. </dependency>
  232. </dependencies>
  233. </dependencyManagement>
  234. <build>
  235. <finalName>${project.name}</finalName>
  236. <resources>
  237. <resource>
  238. <directory>src/main/resources</directory>
  239. <filtering>true</filtering>
  240. </resource>
  241. </resources>
  242. <pluginManagement>
  243. <plugins>
  244. <plugin>
  245. <groupId>org.springframework.boot</groupId>
  246. <artifactId>spring-boot-maven-plugin</artifactId>
  247. <version>${spring-boot.version}</version>
  248. <configuration>
  249. <mainClass>com.coffee.admin.AdminApplication</mainClass>
  250. <finalName>${project.build.finalName}</finalName>
  251. <layers>
  252. <enabled>true</enabled>
  253. </layers>
  254. </configuration>
  255. <executions>
  256. <execution>
  257. <goals>
  258. <goal>repackage</goal>
  259. </goals>
  260. </execution>
  261. </executions>
  262. </plugin>
  263. </plugins>
  264. </pluginManagement>
  265. </build>
  266. <profiles>
  267. <profile>
  268. <id>dev</id>
  269. <properties>
  270. <!-- 环境标识,需要与配置文件的名称相对应 -->
  271. <profiles.active>dev</profiles.active>
  272. <logging.level>debug</logging.level>
  273. </properties>
  274. <activation>
  275. <!-- 默认环境 -->
  276. <activeByDefault>true</activeByDefault>
  277. </activation>
  278. </profile>
  279. <profile>
  280. <id>test</id>
  281. <properties>
  282. <profiles.active>test</profiles.active>
  283. <logging.level>warn</logging.level>
  284. </properties>
  285. </profile>
  286. <profile>
  287. <id>prod</id>
  288. <properties>
  289. <profiles.active>prod</profiles.active>
  290. <logging.level>warn</logging.level>
  291. </properties>
  292. </profile>
  293. </profiles>
  294. </project>