pom.xml 11 KB

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