pom.xml 5.8 KB

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