pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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.sckw.robot</groupId>
  7. <artifactId>orbital-robot</artifactId>
  8. <version>1.0.0</version>
  9. <properties>
  10. <java.version>17</java.version>
  11. <maven.compiler.source>17</maven.compiler.source>
  12. <maven.compiler.target>17</maven.compiler.target>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. <spring-boot.version>3.4.7</spring-boot.version>
  15. <maven-clean-plugin.version>3.2.0</maven-clean-plugin.version>
  16. <start-class>com.sckw.robot.RobotApplication</start-class>
  17. <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
  18. <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
  19. <maven-resources-plugin.version>3.3.0</maven-resources-plugin.version>
  20. <maven-install-plugin.version>3.0.1</maven-install-plugin.version>
  21. <maven-deploy-plugin.version>3.0.0</maven-deploy-plugin.version>
  22. </properties>
  23. <dependencyManagement>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-dependencies</artifactId>
  28. <version>${spring-boot.version}</version>
  29. <type>pom</type>
  30. <scope>import</scope>
  31. </dependency>
  32. </dependencies>
  33. </dependencyManagement>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.projectlombok</groupId>
  37. <artifactId>lombok</artifactId>
  38. <optional>true</optional>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-validation</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter</artifactId>
  47. <exclusions>
  48. <exclusion>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-logging</artifactId>
  51. </exclusion>
  52. </exclusions>
  53. </dependency>
  54. <!--log4j2日志框架-->
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-log4j2</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-web</artifactId>
  62. <!--排除tomcat-->
  63. <exclusions>
  64. <exclusion>
  65. <artifactId>spring-boot-starter-tomcat</artifactId>
  66. <groupId>org.springframework.boot</groupId>
  67. </exclusion>
  68. </exclusions>
  69. </dependency>
  70. <!--undertow-->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-undertow</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-starter-jdbc</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.springframework.amqp</groupId>
  81. <artifactId>spring-rabbit</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-starter-test</artifactId>
  86. <scope>test</scope>
  87. </dependency>
  88. <!--commons-lang3-->
  89. <dependency>
  90. <groupId>org.apache.commons</groupId>
  91. <artifactId>commons-lang3</artifactId>
  92. </dependency>
  93. <!--redis-->
  94. <dependency>
  95. <groupId>org.springframework.boot</groupId>
  96. <artifactId>spring-boot-starter-data-redis</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.commons</groupId>
  100. <artifactId>commons-pool2</artifactId>
  101. </dependency>
  102. <!--security-->
  103. <dependency>
  104. <groupId>org.springframework.security</groupId>
  105. <artifactId>spring-security-crypto</artifactId>
  106. </dependency>
  107. <!--fastjson-->
  108. <dependency>
  109. <groupId>com.alibaba.fastjson2</groupId>
  110. <artifactId>fastjson2</artifactId>
  111. <version>2.0.57</version>
  112. </dependency>
  113. <!--druid-->
  114. <dependency>
  115. <groupId>com.alibaba</groupId>
  116. <artifactId>druid-spring-boot-3-starter</artifactId>
  117. <version>1.2.23</version>
  118. </dependency>
  119. <!--需要指定mysql连接器版本,内置版本过高(9.x.x),否则项目启动时,数据库连接池链接很久-->
  120. <dependency>
  121. <groupId>com.mysql</groupId>
  122. <artifactId>mysql-connector-j</artifactId>
  123. <version>8.2.0</version>
  124. </dependency>
  125. <!--mybatis-plus-->
  126. <dependency>
  127. <groupId>com.baomidou</groupId>
  128. <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
  129. <version>3.5.12</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.squareup.okhttp3</groupId>
  133. <artifactId>okhttp</artifactId>
  134. <version>4.9.3</version>
  135. </dependency>
  136. </dependencies>
  137. <repositories>
  138. <repository>
  139. <id>releases</id>
  140. <name>Releases</name>
  141. <url>https://oss.sonatype.org/content/repositories/releases/</url>
  142. </repository>
  143. <repository>
  144. <id>snapshots</id>
  145. <name>Snapshots</name>
  146. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  147. </repository>
  148. </repositories>
  149. <build>
  150. <pluginManagement>
  151. <plugins>
  152. <plugin>
  153. <groupId>org.apache.maven.plugins</groupId>
  154. <artifactId>maven-clean-plugin</artifactId>
  155. <version>${maven-clean-plugin.version}</version>
  156. </plugin>
  157. <plugin>
  158. <groupId>org.apache.maven.plugins</groupId>
  159. <artifactId>maven-compiler-plugin</artifactId>
  160. <version>${maven-compiler-plugin.version}</version>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-deploy-plugin</artifactId>
  165. <version>${maven-deploy-plugin.version}</version>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.apache.maven.plugins</groupId>
  169. <artifactId>maven-install-plugin</artifactId>
  170. <version>${maven-install-plugin.version}</version>
  171. </plugin>
  172. <plugin>
  173. <groupId>org.apache.maven.plugins</groupId>
  174. <artifactId>maven-jar-plugin</artifactId>
  175. <version>${maven-jar-plugin.version}</version>
  176. </plugin>
  177. <plugin>
  178. <groupId>org.apache.maven.plugins</groupId>
  179. <artifactId>maven-resources-plugin</artifactId>
  180. <version>${maven-resources-plugin.version}</version>
  181. <configuration>
  182. <propertiesEncoding>${project.build.sourceEncoding}</propertiesEncoding>
  183. <delimiters>
  184. <delimiter>@</delimiter>
  185. </delimiters>
  186. <useDefaultDelimiters>false</useDefaultDelimiters>
  187. </configuration>
  188. </plugin>
  189. <plugin>
  190. <groupId>org.springframework.boot</groupId>
  191. <artifactId>spring-boot-maven-plugin</artifactId>
  192. <version>${spring-boot.version}</version>
  193. </plugin>
  194. </plugins>
  195. </pluginManagement>
  196. <plugins>
  197. <plugin>
  198. <groupId>org.springframework.boot</groupId>
  199. <artifactId>spring-boot-maven-plugin</artifactId>
  200. <executions>
  201. <execution>
  202. <id>repackage</id>
  203. <goals>
  204. <goal>repackage</goal>
  205. </goals>
  206. </execution>
  207. </executions>
  208. <configuration>
  209. <excludes>
  210. <exclude>
  211. <groupId>org.projectlombok</groupId>
  212. <artifactId>lombok</artifactId>
  213. </exclude>
  214. </excludes>
  215. <mainClass>${start-class}</mainClass>
  216. </configuration>
  217. </plugin>
  218. <plugin>
  219. <groupId>org.apache.maven.plugins</groupId>
  220. <artifactId>maven-compiler-plugin</artifactId>
  221. <configuration>
  222. <source>17</source>
  223. <target>17</target>
  224. </configuration>
  225. </plugin>
  226. <plugin>
  227. <groupId>org.apache.maven.plugins</groupId>
  228. <artifactId>maven-jar-plugin</artifactId>
  229. <configuration>
  230. <archive>
  231. <manifest>
  232. <mainClass>${start-class}</mainClass>
  233. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  234. </manifest>
  235. </archive>
  236. </configuration>
  237. </plugin>
  238. <plugin>
  239. <groupId>org.apache.maven.plugins</groupId>
  240. <artifactId>maven-resources-plugin</artifactId>
  241. <configuration>
  242. <propertiesEncoding>${project.build.sourceEncoding}</propertiesEncoding>
  243. <delimiters>
  244. <delimiter>@</delimiter>
  245. </delimiters>
  246. <useDefaultDelimiters>false</useDefaultDelimiters>
  247. </configuration>
  248. </plugin>
  249. </plugins>
  250. <resources>
  251. <resource>
  252. <!-- xml放在java目录下-->
  253. <directory>src/main/java</directory>
  254. <includes>
  255. <include>**/*.xml</include>
  256. </includes>
  257. </resource>
  258. <resource>
  259. <directory>src/main/resources</directory>
  260. <includes>
  261. <include>**/*.properties</include>
  262. <!-- 配置一下yml文件 -->
  263. <include>**/*.yml</include>
  264. <include>**/*.xml</include>
  265. </includes>
  266. <filtering>false</filtering>
  267. </resource>
  268. </resources>
  269. </build>
  270. </project>