pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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>org.example</groupId>
  7. <artifactId>WindDataTrans</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <parent>
  10. <groupId>org.springframework.boot</groupId>
  11. <artifactId>spring-boot-starter-parent</artifactId>
  12. <version>2.7.18</version>
  13. <relativePath/> <!-- lookup parent from repository -->
  14. </parent>
  15. <properties>
  16. <maven.compiler.source>8</maven.compiler.source>
  17. <maven.compiler.target>8</maven.compiler.target>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>mysql</groupId>
  22. <artifactId>mysql-connector-java</artifactId>
  23. <version>8.0.28</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.projectlombok</groupId>
  27. <artifactId>lombok</artifactId>
  28. <version>1.18.30</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-test</artifactId>
  33. <scope>test</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>cn.hutool</groupId>
  37. <artifactId>hutool-all</artifactId>
  38. <version>5.7.15</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.alibaba</groupId>
  42. <artifactId>fastjson</artifactId>
  43. <version>2.0.26</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.apache.velocity</groupId>
  47. <artifactId>velocity</artifactId>
  48. <version>1.7</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.github.xiaoymin</groupId>
  52. <artifactId>knife4j-spring-boot-starter</artifactId>
  53. <version>3.0.3</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.dtflys.forest</groupId>
  57. <artifactId>forest-spring-boot-starter</artifactId>
  58. <version>1.5.36</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.baomidou</groupId>
  62. <artifactId>mybatis-plus-boot-starter</artifactId>
  63. <version>3.5.7</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.baomidou</groupId>
  67. <artifactId>mybatis-plus-generator</artifactId>
  68. <version>3.5.3.1</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.alibaba</groupId>
  72. <artifactId>druid-spring-boot-starter</artifactId>
  73. <version>1.2.25</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-starter-validation</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-starter-web</artifactId>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.fasterxml.jackson.core</groupId>
  89. <artifactId>jackson-core</artifactId>
  90. <version>2.15.2</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.fasterxml.jackson.core</groupId>
  94. <artifactId>jackson-databind</artifactId>
  95. <version>2.15.2</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.fasterxml.jackson.dataformat</groupId>
  99. <artifactId>jackson-dataformat-yaml</artifactId>
  100. <version>2.15.2</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>p6spy</groupId>
  104. <artifactId>p6spy</artifactId>
  105. <version>3.9.1</version>
  106. </dependency>
  107. </dependencies>
  108. <!-- <build>-->
  109. <!-- <plugins>-->
  110. <!-- <plugin>-->
  111. <!-- <groupId>org.springframework.boot</groupId>-->
  112. <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
  113. <!-- <version>2.7.18</version>-->
  114. <!-- <executions>-->
  115. <!-- <execution>-->
  116. <!-- <goals>-->
  117. <!-- <goal>repackage</goal>-->
  118. <!-- </goals>-->
  119. <!-- </execution>-->
  120. <!-- </executions>-->
  121. <!-- &lt;!&ndash; 可选地指定 mainClass,但通常不是必需的 &ndash;&gt;-->
  122. <!-- <configuration>-->
  123. <!-- <mainClass>com.dskj.znzn.transData.Application</mainClass>-->
  124. <!-- </configuration>-->
  125. <!-- </plugin>-->
  126. <!-- &lt;!&ndash; 其他插件配置... &ndash;&gt;-->
  127. <!-- </plugins>-->
  128. <!-- </build>-->
  129. <build>
  130. <plugins>
  131. <!-- 1. 把所有依赖复制到 target/lib 目录 -->
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-dependency-plugin</artifactId>
  135. <version>3.6.1</version>
  136. <executions>
  137. <execution>
  138. <id>copy-dependencies</id>
  139. <phase>package</phase>
  140. <goals>
  141. <goal>copy-dependencies</goal>
  142. </goals>
  143. <configuration>
  144. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  145. </configuration>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. <!-- 2. 打包项目 jar,并配置 classpath 自动加载 lib 下所有依赖 -->
  150. <plugin>
  151. <groupId>org.apache.maven.plugins</groupId>
  152. <artifactId>maven-jar-plugin</artifactId>
  153. <version>3.3.0</version>
  154. <configuration>
  155. <archive>
  156. <manifest>
  157. <!-- 你的主类(改成你自己的包路径) -->
  158. <mainClass>com.dskj.znzn.transData.Application</mainClass>
  159. <!-- 自动添加所有依赖到 classpath -->
  160. <addClasspath>true</addClasspath>
  161. <!-- 依赖所在目录 -->
  162. <classpathPrefix>lib/</classpathPrefix>
  163. </manifest>
  164. </archive>
  165. </configuration>
  166. </plugin>
  167. </plugins>
  168. </build>
  169. </project>