pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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>com.netflix</groupId>
  7. <artifactId>netflix</artifactId>
  8. <packaging>pom</packaging>
  9. <version>1.0</version>
  10. <description>netflix</description>
  11. <properties>
  12. <java.version>11</java.version>
  13. <spring.boot.version>2.4.3</spring.boot.version>
  14. <jackson.version>2.10.3</jackson.version>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <maven.compiler.source>11</maven.compiler.source>
  17. <maven.compiler.target>11</maven.compiler.target>
  18. </properties>
  19. <dependencyManagement>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-dependencies</artifactId>
  24. <version>${spring.boot.version}</version>
  25. <type>pom</type>
  26. <scope>import</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>com.netflix</groupId>
  30. <artifactId>netflix-web</artifactId>
  31. <version>1.0</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.netflix</groupId>
  35. <artifactId>netflix-service</artifactId>
  36. <version>1.0</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.netflix</groupId>
  40. <artifactId>netflix-dao</artifactId>
  41. <version>1.0</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.netflix</groupId>
  45. <artifactId>netflix-common</artifactId>
  46. <version>1.0</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.projectlombok</groupId>
  50. <artifactId>lombok</artifactId>
  51. <version>1.18.12</version>
  52. </dependency>
  53. <!-- Sa-Token 整合 Redis (使用jackson序列化方式) -->
  54. <dependency>
  55. <groupId>cn.dev33</groupId>
  56. <artifactId>sa-token-dao-redis-jackson</artifactId>
  57. <version>1.26.0</version>
  58. </dependency>
  59. <!-- sa-token -->
  60. <dependency>
  61. <groupId>cn.dev33</groupId>
  62. <artifactId>sa-token-spring-boot-starter</artifactId>
  63. <version>1.26.0</version>
  64. </dependency>
  65. </dependencies>
  66. </dependencyManagement>
  67. <dependencies>
  68. <dependency>
  69. <groupId>org.projectlombok</groupId>
  70. <artifactId>lombok</artifactId>
  71. <scope>provided</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-actuator</artifactId>
  76. </dependency>
  77. <!-- mybatis plus -->
  78. <dependency>
  79. <groupId>com.baomidou</groupId>
  80. <artifactId>mybatis-plus-boot-starter</artifactId>
  81. <version>3.4.2</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.alibaba</groupId>
  85. <artifactId>easyexcel</artifactId>
  86. <version>2.0.5</version>
  87. </dependency>
  88. <!-- 提供redis连接池 -->
  89. <dependency>
  90. <groupId>org.apache.commons</groupId>
  91. <artifactId>commons-pool2</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-starter-data-redis</artifactId>
  96. </dependency>
  97. <!-- SpringBoot / Grails 的项目直接使用以下依赖,更为方便(只添加这一个依赖即可) -->
  98. <dependency>
  99. <groupId>com.ejlchina</groupId>
  100. <artifactId>bean-searcher-boot-starter</artifactId>
  101. <version>3.8.0</version>
  102. </dependency>
  103. </dependencies>
  104. <build>
  105. <plugins>
  106. <plugin>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-maven-plugin</artifactId>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-compiler-plugin</artifactId>
  113. <version>3.8.1</version>
  114. <configuration>
  115. <source>${java.version}</source>
  116. <target>${java.version}</target>
  117. <encoding>${project.build.sourceEncoding}</encoding>
  118. <compilerArgument>-Xlint:unchecked</compilerArgument>
  119. </configuration>
  120. </plugin>
  121. </plugins>
  122. <resources>
  123. <resource>
  124. <directory>src/main/resources</directory>
  125. <includes>
  126. <include>**/*</include>
  127. </includes>
  128. <filtering>true</filtering>
  129. </resource>
  130. </resources>
  131. <finalName>netflix</finalName>
  132. </build>
  133. <!-- profiles配置 -->
  134. <profiles>
  135. <profile>
  136. <id>dev</id>
  137. <activation>
  138. <activeByDefault>true</activeByDefault>
  139. </activation>
  140. <build>
  141. <filters>
  142. <filter>../deploy/vars/dev.properties</filter>
  143. </filters>
  144. </build>
  145. </profile>
  146. <profile>
  147. <id>prd</id>
  148. <build>
  149. <filters>
  150. <filter>../deploy/vars/prd.properties</filter>
  151. </filters>
  152. </build>
  153. </profile>
  154. </profiles>
  155. <modules>
  156. <module>netflix-common</module>
  157. <module>netflix-dao</module>
  158. <module>netflix-service</module>
  159. <module>netflix-web</module>
  160. </modules>
  161. </project>