modbus采集,停机采集和三合一采集服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
5.2 KiB

2 weeks ago
  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
  5. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  6. <modelVersion>4.0.0</modelVersion>
  7. <parent>
  8. <groupId>org.springframework.boot</groupId>
  9. <artifactId>spring-boot-starter-parent</artifactId>
  10. <version>3.1.5</version>
  11. <relativePath/>
  12. </parent>
  13. <groupId>com.xujie</groupId>
  14. <artifactId>device-collector</artifactId>
  15. <version>1.0.0</version>
  16. <name>Device Collector</name>
  17. <description>设备数据采集独立服务</description>
  18. <properties>
  19. <java.version>21</java.version>
  20. <maven.compiler.source>21</maven.compiler.source>
  21. <maven.compiler.target>21</maven.compiler.target>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. <mybatis-plus.version>3.5.7</mybatis-plus.version>
  24. <druid.version>1.2.20</druid.version>
  25. <j2mod.version>3.2.1</j2mod.version>
  26. </properties>
  27. <dependencies>
  28. <!--sqlServer driver -->
  29. <dependency>
  30. <groupId>com.microsoft.sqlserver</groupId>
  31. <artifactId>sqljdbc4</artifactId>
  32. <version>4.0</version>
  33. </dependency>
  34. <!-- Spring Boot Starter Web -->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-web</artifactId>
  38. </dependency>
  39. <!-- MyBatis-Plus -->
  40. <dependency>
  41. <groupId>com.baomidou</groupId>
  42. <artifactId>mybatis-plus-boot-starter</artifactId>
  43. <version>${mybatis-plus.version}</version>
  44. </dependency>
  45. <!-- Spring Boot Starter Data Redis -->
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-data-redis</artifactId>
  49. </dependency>
  50. <!-- Druid 数据库连接池 -->
  51. <dependency>
  52. <groupId>com.alibaba</groupId>
  53. <artifactId>druid-spring-boot-3-starter</artifactId>
  54. <version>1.2.23</version>
  55. </dependency>
  56. <!-- Modbus TCP 通信库 -->
  57. <dependency>
  58. <groupId>com.ghgande</groupId>
  59. <artifactId>j2mod</artifactId>
  60. <version>${j2mod.version}</version>
  61. </dependency>
  62. <!-- FastJSON -->
  63. <dependency>
  64. <groupId>com.alibaba.fastjson2</groupId>
  65. <artifactId>fastjson2</artifactId>
  66. <version>2.0.53</version>
  67. </dependency>
  68. <!-- Apache Commons Lang3 -->
  69. <dependency>
  70. <groupId>org.apache.commons</groupId>
  71. <artifactId>commons-lang3</artifactId>
  72. </dependency>
  73. <!-- Lombok (可选,用于简化代码) -->
  74. <dependency>
  75. <groupId>org.projectlombok</groupId>
  76. <artifactId>lombok</artifactId>
  77. <optional>true</optional>
  78. </dependency>
  79. <!-- Spring Boot Starter Test -->
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-starter-test</artifactId>
  83. <scope>test</scope>
  84. </dependency>
  85. </dependencies>
  86. <build>
  87. <finalName>glue-modbus-collector</finalName>
  88. <plugins>
  89. <plugin>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-maven-plugin</artifactId>
  92. <configuration>
  93. <jvmArguments>
  94. -Dfile.encoding=UTF-8
  95. -Duser.language=zh
  96. -Duser.country=CN
  97. -Dsun.jnu.encoding=UTF-8
  98. </jvmArguments>
  99. <excludes>
  100. <exclude>
  101. <groupId>org.projectlombok</groupId>
  102. <artifactId>lombok</artifactId>
  103. </exclude>
  104. </excludes>
  105. </configuration>
  106. </plugin>
  107. <plugin>
  108. <groupId>org.apache.maven.plugins</groupId>
  109. <artifactId>maven-compiler-plugin</artifactId>
  110. <version>3.8.1</version>
  111. <configuration>
  112. <source>21</source>
  113. <target>21</target>
  114. <encoding>UTF-8</encoding>
  115. </configuration>
  116. </plugin>
  117. <plugin>
  118. <groupId>org.apache.maven.plugins</groupId>
  119. <artifactId>maven-resources-plugin</artifactId>
  120. <version>3.2.0</version>
  121. <configuration>
  122. <encoding>UTF-8</encoding>
  123. </configuration>
  124. </plugin>
  125. </plugins>
  126. </build>
  127. <repositories>
  128. <repository>
  129. <id>aliyun</id>
  130. <name>Aliyun Maven</name>
  131. <url>https://maven.aliyun.com/repository/public</url>
  132. </repository>
  133. <repository>
  134. <id>central</id>
  135. <name>Maven Central</name>
  136. <url>https://repo1.maven.org/maven2</url>
  137. </repository>
  138. </repositories>
  139. </project>