pom.xml 11 KB

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