pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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.om</groupId>
  7. <artifactId>OperationSystem</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.4.10</version>
  13. </parent>
  14. <properties>
  15. <maven.compiler.source>8</maven.compiler.source>
  16. <maven.compiler.target>8</maven.compiler.target>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <mybatis-plus.version>3.4.1</mybatis-plus.version>
  19. <mysql.version>8.0.33</mysql.version>
  20. <knife4j.version>3.0.3</knife4j.version>
  21. <jwt.version>0.9.1</jwt.version>
  22. <fastjson.version>2.0.21</fastjson.version>
  23. <httpclient.version>4.5.10</httpclient.version>
  24. <commons-lang3.version>3.4</commons-lang3.version>
  25. <knife4j.version>3.0.3</knife4j.version>
  26. <hutool.version>5.8.21</hutool.version>
  27. <hibernate-validator.version>6.1.5.Final</hibernate-validator.version>
  28. </properties>
  29. <dependencies>
  30. <!--springboot中web启动器-->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-web</artifactId>
  34. <exclusions>
  35. <exclusion>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-tomcat</artifactId>
  38. </exclusion>
  39. </exclusions>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-undertow</artifactId>
  44. <exclusions>
  45. <!-- 排除 undertow-websockets-jsr 依赖 -->
  46. <exclusion>
  47. <groupId>io.undertow</groupId>
  48. <artifactId>undertow-websockets-jsr</artifactId>
  49. </exclusion>
  50. </exclusions>
  51. </dependency>
  52. <!--springboot中test启动-->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-test</artifactId>
  56. <scope>test</scope>
  57. </dependency>
  58. <!--mybatis-plus 持久层-->
  59. <dependency>
  60. <groupId>com.baomidou</groupId>
  61. <artifactId>mybatis-plus-boot-starter</artifactId>
  62. <version>${mybatis-plus.version}</version>
  63. </dependency>
  64. <!--mysql-->
  65. <dependency>
  66. <groupId>mysql</groupId>
  67. <artifactId>mysql-connector-java</artifactId>
  68. <version>${mysql.version}</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.projectlombok</groupId>
  72. <artifactId>lombok</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-starter-data-redis</artifactId>
  77. </dependency>
  78. <!--http客户端依赖-->
  79. <dependency>
  80. <groupId>org.apache.httpcomponents</groupId>
  81. <artifactId>httpclient</artifactId>
  82. <version>${httpclient.version}</version>
  83. </dependency>
  84. <!--common-lang工具包-->
  85. <dependency>
  86. <groupId>org.apache.commons</groupId>
  87. <artifactId>commons-lang3</artifactId>
  88. <version>${commons-lang3.version}</version>
  89. </dependency>
  90. <!--springboot整合knife4j依赖-->
  91. <dependency>
  92. <groupId>com.github.xiaoymin</groupId>
  93. <artifactId>knife4j-spring-boot-starter</artifactId>
  94. <version>${knife4j.version}</version>
  95. </dependency>
  96. <!--hutool工具包-->
  97. <dependency>
  98. <groupId>cn.hutool</groupId>
  99. <artifactId>hutool-all</artifactId>
  100. <version>${hutool.version}</version>
  101. </dependency>
  102. <!--jjwt-->
  103. <dependency>
  104. <groupId>io.jsonwebtoken</groupId>
  105. <artifactId>jjwt</artifactId>
  106. <version>${jwt.version}</version>
  107. </dependency>
  108. <!--fastjson-->
  109. <dependency>
  110. <groupId>com.alibaba</groupId>
  111. <artifactId>fastjson</artifactId>
  112. <version>${fastjson.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-starter-web</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.hibernate.validator</groupId>
  120. <artifactId>hibernate-validator</artifactId>
  121. <version>${hibernate-validator.version}</version>
  122. </dependency>
  123. </dependencies>
  124. <build>
  125. <!--项目名称-->
  126. <finalName>${project.artifactId}</finalName>
  127. <plugins>
  128. <!-- 设置maven生命周期-->
  129. <plugin>
  130. <groupId>org.apache.maven.plugins</groupId>
  131. <artifactId>maven-surefire-plugin</artifactId>
  132. <configuration>
  133. <!--test失败后忽略-->
  134. <skipTests>true</skipTests>
  135. </configuration>
  136. </plugin>
  137. <!--项目打包时,把需要的各种依赖包都打到jar包中,jar包可以独立运行,使用“java -jar”可以直接运-->
  138. <plugin>
  139. <groupId>org.springframework.boot</groupId>
  140. <artifactId>spring-boot-maven-plugin</artifactId>
  141. </plugin>
  142. </plugins>
  143. </build>
  144. </project>