Browse Source

modbus 初始化
导入modbus-spring-boot-starter组件

k 2 years ago
parent
commit
fc3739127f

BIN
lib/RXTXcomm.jar


BIN
lib/jssc-2.8.0.jar


BIN
lib/modbus4j-3.0.5.jar


BIN
lib/rxtxParallel.dll


BIN
lib/rxtxSerial.dll


+ 12 - 4
pom.xml

@@ -3,7 +3,7 @@
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 	<modelVersion>4.0.0</modelVersion>
-	
+
     <groupId>com.ruoyi</groupId>
     <artifactId>ruoyi</artifactId>
     <version>3.8.1</version>
@@ -11,7 +11,7 @@
     <name>ruoyi</name>
     <url>http://www.ruoyi.vip</url>
     <description>若依管理系统</description>
-    
+
     <properties>
         <ruoyi.version>3.8.1</ruoyi.version>
         <warewms.version>1.0</warewms.version>
@@ -36,7 +36,7 @@
         <jwt.version>0.9.1</jwt.version>
         <skipTests>true</skipTests>
     </properties>
-	
+
     <!-- 依赖声明 -->
     <dependencyManagement>
         <dependencies>
@@ -215,6 +215,13 @@
                 <version>${warewms.version}</version>
             </dependency>
 
+            <!-- hard模块-->
+            <dependency>
+                <groupId>com.ruoyi</groupId>
+                <artifactId>warewms-hard</artifactId>
+                <version>${warewms.version}</version>
+            </dependency>
+
         </dependencies>
     </dependencyManagement>
 
@@ -227,6 +234,7 @@
         <module>ruoyi-common</module>
         <module>warewms-base</module>
         <module>warewms-ams</module>
+        <module>warewms-hard</module>
     </modules>
     <packaging>pom</packaging>
 
@@ -275,4 +283,4 @@
         </pluginRepository>
     </pluginRepositories>
 
-</project>
+</project>

+ 6 - 1
ruoyi-admin/pom.xml

@@ -85,6 +85,11 @@
             <artifactId>warewms-ams</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>com.ruoyi</groupId>
+            <artifactId>warewms-hard</artifactId>
+        </dependency>
+
     </dependencies>
 
 <!--    <build>-->
@@ -199,4 +204,4 @@
         </plugins>
     </build>
 
-</project>
+</project>

+ 29 - 0
warewms-hard/pom.xml

@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>ruoyi</artifactId>
+        <groupId>com.ruoyi</groupId>
+        <version>3.8.1</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>warewms-hard</artifactId>
+    <version>1.0</version>
+    <description>硬件对接</description>
+
+    <dependencies>
+        <!-- 通用工具-->
+        <dependency>
+            <groupId>com.ruoyi</groupId>
+            <artifactId>ruoyi-common</artifactId>
+        </dependency>
+        <!--自定义starter组件-->
+        <dependency>
+            <groupId>com.jwk</groupId>
+            <artifactId>modbus-spring-boot-starter</artifactId>
+            <version>1.0</version>
+        </dependency>
+    </dependencies>
+</project>

+ 12 - 0
warewms-hard/src/main/java/com/ruoyi/hard/service/Test.java

@@ -0,0 +1,12 @@
+package com.ruoyi.hard.service;
+
+/**
+ * @author JWK
+ * @version 1.0
+ * @date 2022/12/13 16:30
+ */
+public class Test {
+    public static void main(String[] args) {
+
+    }
+}