pom.xml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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. <properties>
  7. <revision>0.0.1-SNAPSHOT</revision>
  8. <forecast.version>${revision}</forecast.version>
  9. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  10. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  11. <java.version>21</java.version>
  12. <spring-boot.version>3.4.7</spring-boot.version>
  13. <druid.version>1.2.23</druid.version>
  14. <bitwalker.version>1.21</bitwalker.version>
  15. <swagger.version>3.0.0</swagger.version>
  16. <kaptcha.version>2.3.3</kaptcha.version>
  17. <pagehelper.boot.version>1.4.7</pagehelper.boot.version>
  18. <fastjson.version>2.0.57</fastjson.version>
  19. <oshi.version>6.8.2</oshi.version>
  20. <commons.io.version>2.19.0</commons.io.version>
  21. <poi.version>4.1.2</poi.version>
  22. <velocity.version>2.3</velocity.version>
  23. </properties>
  24. <name>forecast</name>
  25. <url>http://www.oleauto.cn/</url>
  26. <description>光伏功率预测系统</description>
  27. <groupId>cn.oleauto</groupId>
  28. <artifactId>forecast</artifactId>
  29. <version>${revision}</version>
  30. <!-- 依赖声明 -->
  31. <dependencyManagement>
  32. <dependencies>
  33. <dependency>
  34. <groupId>jakarta.xml.bind</groupId>
  35. <artifactId>jakarta.xml.bind-api</artifactId>
  36. <version>4.0.2</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>jakarta.servlet</groupId>
  40. <artifactId>jakarta.servlet-api</artifactId>
  41. <version>6.1.0</version>
  42. <scope>provided</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-dependencies</artifactId>
  47. <version>${spring-boot.version}</version>
  48. <type>pom</type>
  49. <scope>import</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.baomidou</groupId>
  53. <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
  54. <version>3.5.9</version>
  55. </dependency>
  56. <!-- 阿里数据库连接池 -->
  57. <dependency>
  58. <groupId>com.alibaba</groupId>
  59. <artifactId>druid-spring-boot-starter</artifactId>
  60. <version>${druid.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>cn.hutool</groupId>
  64. <artifactId>hutool-all</artifactId>
  65. <version>5.8.39</version>
  66. </dependency>
  67. <!-- 解析客户端操作系统、浏览器等 -->
  68. <dependency>
  69. <groupId>eu.bitwalker</groupId>
  70. <artifactId>UserAgentUtils</artifactId>
  71. <version>${bitwalker.version}</version>
  72. </dependency>
  73. <!-- pagehelper 分页插件 -->
  74. <dependency>
  75. <groupId>com.github.pagehelper</groupId>
  76. <artifactId>pagehelper-spring-boot-starter</artifactId>
  77. <version>${pagehelper.boot.version}</version>
  78. </dependency>
  79. <!-- 获取系统信息 -->
  80. <dependency>
  81. <groupId>com.github.oshi</groupId>
  82. <artifactId>oshi-core</artifactId>
  83. <version>${oshi.version}</version>
  84. </dependency>
  85. <!-- Swagger3依赖 -->
  86. <dependency>
  87. <groupId>org.springdoc</groupId>
  88. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  89. <version>2.8.8</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.springdoc</groupId>
  93. <artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
  94. <version>2.8.8</version>
  95. </dependency>
  96. <!-- https://mvnrepository.com/artifact/com.lmax/disruptor -->
  97. <dependency>
  98. <groupId>com.lmax</groupId>
  99. <artifactId>disruptor</artifactId>
  100. <version>4.0.0</version>
  101. </dependency>
  102. <!-- io常用工具类 -->
  103. <dependency>
  104. <groupId>commons-io</groupId>
  105. <artifactId>commons-io</artifactId>
  106. <version>${commons.io.version}</version>
  107. </dependency>
  108. <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents.client5/httpclient5 -->
  109. <dependency>
  110. <groupId>org.apache.httpcomponents.client5</groupId>
  111. <artifactId>httpclient5</artifactId>
  112. <version>5.5</version>
  113. </dependency>
  114. <!-- excel工具 -->
  115. <dependency>
  116. <groupId>org.apache.poi</groupId>
  117. <artifactId>poi-ooxml</artifactId>
  118. <version>${poi.version}</version>
  119. </dependency>
  120. <!-- velocity代码生成使用模板 -->
  121. <dependency>
  122. <groupId>org.apache.velocity</groupId>
  123. <artifactId>velocity-engine-core</artifactId>
  124. <version>${velocity.version}</version>
  125. </dependency>
  126. <!-- 阿里JSON解析器 -->
  127. <dependency>
  128. <groupId>com.alibaba.fastjson2</groupId>
  129. <artifactId>fastjson2</artifactId>
  130. <version>${fastjson.version}</version>
  131. </dependency>
  132. <!-- Token生成与解析-->
  133. <dependency>
  134. <groupId>io.jsonwebtoken</groupId>
  135. <artifactId>jjwt</artifactId>
  136. <version>0.12.6</version>
  137. </dependency>
  138. <!-- 验证码 -->
  139. <dependency>
  140. <groupId>pro.fessional</groupId>
  141. <artifactId>kaptcha</artifactId>
  142. <version>${kaptcha.version}</version>
  143. </dependency>
  144. <!-- 通用工具-->
  145. <dependency>
  146. <groupId>cn.oleauto</groupId>
  147. <artifactId>forecast-common</artifactId>
  148. <version>${revision}</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>cn.oleauto</groupId>
  152. <artifactId>forecast-dao</artifactId>
  153. <version>${revision}</version>
  154. </dependency>
  155. </dependencies>
  156. </dependencyManagement>
  157. <modules>
  158. <module>forecast-backend-server</module>
  159. <module>forecast-common</module>
  160. <module>forecast-dao</module>
  161. <module>gateway</module>
  162. </modules>
  163. <packaging>pom</packaging>
  164. <build>
  165. <plugins>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-compiler-plugin</artifactId>
  169. <version>3.1</version>
  170. <configuration>
  171. <source>${java.version}</source>
  172. <target>${java.version}</target>
  173. <encoding>${project.build.sourceEncoding}</encoding>
  174. <compilerArgs>
  175. <arg>-parameters</arg>
  176. </compilerArgs>
  177. </configuration>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.codehaus.mojo</groupId>
  181. <artifactId>flatten-maven-plugin</artifactId>
  182. <version>1.5.0</version>
  183. <configuration>
  184. <updatePomFile>true</updatePomFile>
  185. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  186. </configuration>
  187. <executions>
  188. <execution>
  189. <id>flatten</id>
  190. <phase>process-resources</phase>
  191. <goals>
  192. <goal>flatten</goal>
  193. </goals>
  194. </execution>
  195. <execution>
  196. <id>flatten.clean</id>
  197. <phase>clean</phase>
  198. <goals>
  199. <goal>clean</goal>
  200. </goals>
  201. </execution>
  202. </executions>
  203. </plugin>
  204. </plugins>
  205. </build>
  206. <pluginRepositories>
  207. <pluginRepository>
  208. <id>public</id>
  209. <name>aliyun nexus</name>
  210. <url>https://maven.aliyun.com/repository/public</url>
  211. <releases>
  212. <enabled>true</enabled>
  213. </releases>
  214. <snapshots>
  215. <enabled>false</enabled>
  216. </snapshots>
  217. </pluginRepository>
  218. </pluginRepositories>
  219. </project>