pom.xml 5.0 KB

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