pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>3.3.4</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.platform</groupId>
  12. <artifactId>iot-platform</artifactId>
  13. <version>${revision}</version>
  14. <packaging>pom</packaging>
  15. <name>${project.artifactId}</name>
  16. <description>物联中台</description>
  17. <modules>
  18. <module>iot-platform-manager</module>
  19. <module>iot-platform-common</module>
  20. </modules>
  21. <properties>
  22. <revision>1.0.0</revision>
  23. <java.version>17</java.version>
  24. <spring-cloud.version>2023.0.1</spring-cloud.version>
  25. <spring-cloud-alibaba.version>2023.0.1.0</spring-cloud-alibaba.version>
  26. </properties>
  27. <dependencies>
  28. <!-- MyBatis-Plus -->
  29. <dependency>
  30. <groupId>com.baomidou</groupId>
  31. <artifactId>mybatis-plus-spring-boot3-starter</artifactId>
  32. <version>3.5.7</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.zaxxer</groupId>
  36. <artifactId>HikariCP</artifactId>
  37. <version>5.0.1</version>
  38. </dependency>
  39. <!-- MySQL Connector -->
  40. <dependency>
  41. <groupId>mysql</groupId>
  42. <artifactId>mysql-connector-java</artifactId>
  43. <version>8.0.33</version>
  44. </dependency>
  45. <!-- Nacos Discovery -->
  46. <dependency>
  47. <groupId>com.alibaba.cloud</groupId>
  48. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  49. </dependency>
  50. <!-- Nacos Config -->
  51. <dependency>
  52. <groupId>com.alibaba.cloud</groupId>
  53. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-web</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-devtools</artifactId>
  62. <scope>runtime</scope>
  63. <optional>true</optional>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-test</artifactId>
  68. <scope>test</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.springframework.cloud</groupId>
  72. <artifactId>spring-cloud-starter</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springframework.cloud</groupId>
  76. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.projectlombok</groupId>
  80. <artifactId>lombok</artifactId>
  81. <scope>provided</scope>
  82. </dependency>
  83. <!-- TDengine 官方 Java 驱动 -->
  84. <dependency>
  85. <groupId>com.taosdata.jdbc</groupId>
  86. <artifactId>taos-jdbcdriver</artifactId>
  87. <version>3.2.7</version> <!-- 版本根据 TDengine 服务器版本选择 -->
  88. </dependency>
  89. </dependencies>
  90. <dependencyManagement>
  91. <dependencies>
  92. <dependency>
  93. <groupId>org.springframework.cloud</groupId>
  94. <artifactId>spring-cloud-dependencies</artifactId>
  95. <version>${spring-cloud.version}</version>
  96. <type>pom</type>
  97. <scope>import</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.alibaba.cloud</groupId>
  101. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  102. <version>${spring-cloud-alibaba.version}</version>
  103. <type>pom</type>
  104. <scope>import</scope>
  105. </dependency>
  106. </dependencies>
  107. </dependencyManagement>
  108. <build>
  109. <plugins>
  110. <plugin>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-maven-plugin</artifactId>
  113. <configuration>
  114. <jvmArguments>--enable-native-access=ALL-UNNAMED</jvmArguments>
  115. </configuration>
  116. </plugin>
  117. </plugins>
  118. </build>
  119. </project>