pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. <parent>
  6. <groupId>com.persagy</groupId>
  7. <artifactId>iot</artifactId>
  8. <version>${revision}</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>iot-common</artifactId>
  12. <packaging>jar</packaging>
  13. <name> ${project.artifactId}</name>
  14. <description>定义基础 pojo 类、枚举、工具类等等</description>
  15. <properties>
  16. <!-- <revision>1.0.0</revision>-->
  17. <!-- Maven 相关 -->
  18. <java.version>1.8</java.version>
  19. <maven.compiler.source>${java.version}</maven.compiler.source>
  20. <maven.compiler.target>${java.version}</maven.compiler.target>
  21. <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  24. <spring-boot.version>2.3.7.RELEASE</spring-boot.version>
  25. <spring-cloud-alibaba.version>2.2.2.RELEASE</spring-cloud-alibaba.version>
  26. <spring-cloud.version>Hoxton.SR9</spring-cloud.version>
  27. </properties>
  28. <dependencies>
  29. <!-- Spring 核心 -->
  30. <dependency>
  31. <groupId>org.springframework</groupId>
  32. <artifactId>spring-core</artifactId>
  33. <scope>provided</scope> <!-- 设置为 provided,只有工具类需要使用到 -->
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework</groupId>
  37. <artifactId>spring-expression</artifactId>
  38. <scope>provided</scope> <!-- 设置为 provided,只有工具类需要使用到 -->
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework</groupId>
  42. <artifactId>spring-aop</artifactId>
  43. <scope>provided</scope> <!-- 设置为 provided,只有工具类需要使用到 -->
  44. </dependency>
  45. <dependency>
  46. <groupId>org.aspectj</groupId>
  47. <artifactId>aspectjweaver</artifactId>
  48. <scope>provided</scope> <!-- 设置为 provided,只有工具类需要使用到 -->
  49. </dependency>
  50. <dependency>
  51. <!-- 用于生成自定义的 Spring @ConfigurationProperties 配置类的说明文件 -->
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-configuration-processor</artifactId>
  54. <optional>true</optional>
  55. </dependency>
  56. <!-- Web 相关 -->
  57. <dependency>
  58. <groupId>org.springframework</groupId>
  59. <artifactId>spring-web</artifactId>
  60. <scope>provided</scope> <!-- 设置为 provided,只有工具类需要使用到 -->
  61. </dependency>
  62. <dependency>
  63. <groupId>jakarta.servlet</groupId>
  64. <artifactId>jakarta.servlet-api</artifactId>
  65. <scope>provided</scope> <!-- 设置为 provided,只有工具类需要使用到 -->
  66. </dependency>
  67. <dependency>
  68. <groupId>io.swagger</groupId>
  69. <artifactId>swagger-annotations</artifactId>
  70. <scope>provided</scope> <!-- 设置为 provided,主要是 PageParam 使用到 -->
  71. </dependency>
  72. <!-- 监控相关 -->
  73. <dependency>
  74. <groupId>org.apache.skywalking</groupId>
  75. <artifactId>apm-toolkit-trace</artifactId>
  76. </dependency>
  77. <!-- 工具类相关 -->
  78. <dependency>
  79. <groupId>org.projectlombok</groupId>
  80. <artifactId>lombok</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.mapstruct</groupId>
  84. <artifactId>mapstruct</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.mapstruct</groupId>
  88. <artifactId>mapstruct-jdk8</artifactId> <!-- use mapstruct-jdk8 for Java 8 or higher -->
  89. </dependency>
  90. <dependency>
  91. <groupId>org.mapstruct</groupId>
  92. <artifactId>mapstruct-processor</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>cn.hutool</groupId>
  96. <artifactId>hutool-all</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.google.guava</groupId>
  100. <artifactId>guava</artifactId>
  101. <scope>provided</scope> <!-- 设置为 provided,只有工具类需要使用到 -->
  102. </dependency>
  103. <dependency>
  104. <groupId>com.fasterxml.jackson.core</groupId>
  105. <artifactId>jackson-databind</artifactId>
  106. <scope>provided</scope> <!-- 设置为 provided,只有工具类需要使用到 -->
  107. </dependency>
  108. <dependency>
  109. <groupId>com.fasterxml.jackson.core</groupId>
  110. <artifactId>jackson-core</artifactId>
  111. <scope>provided</scope> <!-- 设置为 provided,只有工具类需要使用到 -->
  112. </dependency>
  113. <dependency>
  114. <groupId>org.slf4j</groupId>
  115. <artifactId>slf4j-api</artifactId>
  116. <scope>provided</scope> <!-- 设置为 provided,只有工具类需要使用到 -->
  117. </dependency>
  118. <dependency>
  119. <groupId>jakarta.validation</groupId>
  120. <artifactId>jakarta.validation-api</artifactId>
  121. <scope>provided</scope> <!-- 设置为 provided,主要是 PageParam 使用到 -->
  122. </dependency>
  123. </dependencies>
  124. </project>