非网用户数据统计项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

179 lines
6.4 KiB

1 month ago
1 month ago
1 month ago
  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.system</groupId>
  7. <artifactId>test</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <maven.compiler.source>17</maven.compiler.source>
  11. <maven.compiler.target>17</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <system.version>1.1.1</system.version>
  14. <spring.boot.version>3.4.4</spring.boot.version>
  15. <mybatis.starter.version>3.0.5</mybatis.starter.version>
  16. <mysql.version>8.3.0</mysql.version>
  17. <lombok.version>1.18.38</lombok.version>
  18. <slf4j.version>2.0.17</slf4j.version>
  19. </properties>
  20. <build>
  21. <plugins>
  22. <plugin>
  23. <groupId>org.apache.maven.plugins</groupId>
  24. <artifactId>maven-compiler-plugin</artifactId>
  25. <version>3.11.0</version>
  26. <configuration>
  27. <source>17</source>
  28. <target>17</target>
  29. <encoding>UTF-8</encoding>
  30. <compilerArgs>
  31. <arg>-parameters</arg>
  32. </compilerArgs>
  33. </configuration>
  34. </plugin>
  35. <!-- 核心新增:Spring Boot打包插件(生成可运行的胖包) -->
  36. <plugin>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-maven-plugin</artifactId>
  39. <version>${spring.boot.version}</version>
  40. <executions>
  41. <execution>
  42. <goals>
  43. <!-- 关键:重新打包为可运行的JAR(包含所有依赖) -->
  44. <goal>repackage</goal>
  45. </goals>
  46. </execution>
  47. </executions>
  48. <configuration>
  49. <!-- 必须指定Spring Boot启动类(替换为你的实际启动类全路径) -->
  50. <mainClass>com.link.TestApplication</mainClass>
  51. </configuration>
  52. </plugin>
  53. </plugins>
  54. </build>
  55. <dependencies>
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-web</artifactId>
  59. <version>${spring.boot.version}</version>
  60. </dependency>
  61. <!-- AOP支持 -->
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-aop</artifactId>
  65. <version>${spring.boot.version}</version>
  66. </dependency>
  67. <!-- https://mvnrepository.com/artifact/cglib/cglib -->
  68. <dependency>
  69. <groupId>cglib</groupId>
  70. <artifactId>cglib</artifactId>
  71. <version>3.3.0</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework</groupId>
  75. <artifactId>spring-aspects</artifactId>
  76. <version>6.2.5</version>
  77. </dependency>
  78. <!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter -->
  79. <dependency>
  80. <groupId>org.mybatis.spring.boot</groupId>
  81. <artifactId>mybatis-spring-boot-starter</artifactId>
  82. <version>${mybatis.starter.version}</version>
  83. </dependency>
  84. <!-- https://mvnrepository.com/artifact/com.mysql/mysql-connector-j -->
  85. <dependency>
  86. <groupId>com.mysql</groupId>
  87. <artifactId>mysql-connector-j</artifactId>
  88. <version>${mysql.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.slf4j</groupId>
  92. <artifactId>slf4j-api</artifactId>
  93. <version>${slf4j.version}</version> <!-- 版本号与项目中其他日志组件保持兼容 -->
  94. </dependency>
  95. <dependency>
  96. <groupId>org.projectlombok</groupId>
  97. <artifactId>lombok</artifactId>
  98. <version>${lombok.version}</version>
  99. <scope>provided</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>cn.hutool</groupId>
  103. <artifactId>hutool-all</artifactId>
  104. <version>5.8.39</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.alibaba</groupId>
  108. <artifactId>fastjson</artifactId>
  109. <version>2.0.53</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.aliyun.oss</groupId>
  113. <artifactId>aliyun-sdk-oss</artifactId>
  114. <version>3.17.4</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.springframework.boot</groupId>
  118. <artifactId>spring-boot-starter-mail</artifactId>
  119. <version>3.4.4</version>
  120. </dependency>
  121. <!-- <dependency>-->
  122. <!-- <groupId>org.springframework.boot</groupId>-->
  123. <!-- <artifactId>spring-boot-starter-test</artifactId>-->
  124. <!-- <version>3.4.4</version>-->
  125. <!-- <scope>test</scope>-->
  126. <!-- </dependency>-->
  127. <dependency>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-starter-cache</artifactId>
  130. <version>3.4.4</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.springframework.boot</groupId>
  134. <artifactId>spring-boot-starter-data-redis</artifactId>
  135. <version>3.4.4</version>
  136. </dependency>
  137. <!-- 在dependencies节点中添加 -->
  138. <dependency>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-starter-jdbc</artifactId>
  141. <version>${spring.boot.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>com.microsoft.sqlserver</groupId>
  145. <artifactId>mssql-jdbc</artifactId>
  146. <version>11.2.1.jre8</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.github.pagehelper</groupId>
  150. <artifactId>pagehelper-spring-boot-starter</artifactId>
  151. <version>1.3.0</version>
  152. </dependency>
  153. </dependencies>
  154. </project>