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.

142 lines
4.8 KiB

  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 http://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.4.4</version>
  9. <relativePath/>
  10. </parent>
  11. <groupId>com.xujie</groupId>
  12. <artifactId>modbus-collector</artifactId>
  13. <version>1.0.0</version>
  14. <name>modbus-collector</name>
  15. <description>Modbus TCP数据采集系统</description>
  16. <properties>
  17. <java.version>21</java.version>
  18. <maven.compiler.source>21</maven.compiler.source>
  19. <maven.compiler.target>21</maven.compiler.target>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <mybatis-plus.version>3.5.5</mybatis-plus.version>
  22. <druid.version>1.2.20</druid.version>
  23. <j2mod.version>3.2.1</j2mod.version>
  24. </properties>
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-freemarker</artifactId>
  29. </dependency>
  30. <!--sqlServer driver -->
  31. <dependency>
  32. <groupId>com.microsoft.sqlserver</groupId>
  33. <artifactId>sqljdbc4</artifactId>
  34. <version>4.0</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-test</artifactId>
  39. <scope>test</scope>
  40. </dependency>
  41. <!-- Spring Boot Web -->
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-web</artifactId>
  45. </dependency>
  46. <!-- MyBatis-Plus -->
  47. <dependency>
  48. <groupId>com.baomidou</groupId>
  49. <artifactId>mybatis-plus-boot-starter</artifactId>
  50. <version>${mybatis-plus.version}</version>
  51. <exclusions>
  52. <exclusion>
  53. <artifactId>mybatis-spring</artifactId>
  54. <groupId>org.mybatis</groupId>
  55. </exclusion>
  56. </exclusions>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.mybatis</groupId>
  60. <artifactId>mybatis-spring</artifactId>
  61. <version>3.0.3</version>
  62. </dependency>
  63. <!-- Druid 数据库连接池 -->
  64. <dependency>
  65. <groupId>com.alibaba</groupId>
  66. <artifactId>druid-spring-boot-3-starter</artifactId>
  67. <version>${druid.version}</version>
  68. </dependency>
  69. <!-- Modbus TCP 库 -->
  70. <dependency>
  71. <groupId>com.ghgande</groupId>
  72. <artifactId>j2mod</artifactId>
  73. <version>${j2mod.version}</version>
  74. </dependency>
  75. <!-- Lombok -->
  76. <dependency>
  77. <groupId>org.projectlombok</groupId>
  78. <artifactId>lombok</artifactId>
  79. <version>1.18.30</version>
  80. </dependency>
  81. <!-- Redis -->
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-data-redis</artifactId>
  85. </dependency>
  86. <!-- 工具类 -->
  87. <dependency>
  88. <groupId>org.apache.commons</groupId>
  89. <artifactId>commons-lang3</artifactId>
  90. </dependency>
  91. <!-- JSON处理 -->
  92. <dependency>
  93. <groupId>com.alibaba.fastjson2</groupId>
  94. <artifactId>fastjson2</artifactId>
  95. <version>2.0.53</version>
  96. </dependency>
  97. <!-- 测试 -->
  98. <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-test</artifactId>
  101. <scope>test</scope>
  102. </dependency>
  103. </dependencies>
  104. <build>
  105. <plugins>
  106. <plugin>
  107. <groupId>org.springframework.boot</groupId>
  108. <artifactId>spring-boot-maven-plugin</artifactId>
  109. <configuration>
  110. <excludes>
  111. <exclude>
  112. <groupId>org.projectlombok</groupId>
  113. <artifactId>lombok</artifactId>
  114. </exclude>
  115. </excludes>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.apache.maven.plugins</groupId>
  120. <artifactId>maven-compiler-plugin</artifactId>
  121. <version>3.8.1</version>
  122. <configuration>
  123. <source>21</source>
  124. <target>21</target>
  125. </configuration>
  126. </plugin>
  127. </plugins>
  128. </build>
  129. </project>