176 lines
5.2 KiB
XML
176 lines
5.2 KiB
XML
|
|
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|||
|
|
<modelVersion>4.0.0</modelVersion>
|
|||
|
|
<parent>
|
|||
|
|
<groupId>com.rczn</groupId>
|
|||
|
|
<artifactId>Rc-autoplc-backend</artifactId>
|
|||
|
|
<version>0.0.1-SNAPSHOT</version>
|
|||
|
|
<relativePath>../pom.xml</relativePath>
|
|||
|
|
</parent>
|
|||
|
|
|
|||
|
|
<artifactId>rczn-common</artifactId>
|
|||
|
|
<name>rczn-common</name>
|
|||
|
|
<description>rczn-common(公共模块:实体类、工具类、统一响应)</description>
|
|||
|
|
<packaging>jar</packaging>
|
|||
|
|
|
|||
|
|
<!-- 若想引用modbus4j需要引入下列repository id:ias-snapshots id:ias-releases 两个 ,使用默认仓库下载,不要使用阿里云仓库-->
|
|||
|
|
<repositories>
|
|||
|
|
<repository>
|
|||
|
|
<releases>
|
|||
|
|
<enabled>false</enabled>
|
|||
|
|
</releases>
|
|||
|
|
<snapshots>
|
|||
|
|
<enabled>true</enabled>
|
|||
|
|
</snapshots>
|
|||
|
|
<id>ias-snapshots</id>
|
|||
|
|
<name>Infinite Automation Snapshot Repository</name>
|
|||
|
|
<url>https://maven.mangoautomation.net/repository/ias-snapshot/</url>
|
|||
|
|
</repository>
|
|||
|
|
<repository>
|
|||
|
|
<releases>
|
|||
|
|
<enabled>true</enabled>
|
|||
|
|
</releases>
|
|||
|
|
<snapshots>
|
|||
|
|
<enabled>false</enabled>
|
|||
|
|
</snapshots>
|
|||
|
|
<id>ias-releases</id>
|
|||
|
|
<name>Infinite Automation Release Repository</name>
|
|||
|
|
<url>https://maven.mangoautomation.net/repository/ias-release/</url>
|
|||
|
|
</repository>
|
|||
|
|
<!-- ====================== 新增:Spring AI 必须的仓库 ====================== -->
|
|||
|
|
<repository>
|
|||
|
|
<id>spring-milestones</id>
|
|||
|
|
<name>Spring Milestones</name>
|
|||
|
|
<url>https://repo.spring.io/milestone</url>
|
|||
|
|
<snapshots>
|
|||
|
|
<enabled>false</enabled>
|
|||
|
|
</snapshots>
|
|||
|
|
</repository>
|
|||
|
|
<repository>
|
|||
|
|
<id>spring-releases</id>
|
|||
|
|
<name>Spring Releases</name>
|
|||
|
|
<url>https://repo.spring.io/release</url>
|
|||
|
|
</repository>
|
|||
|
|
<!-- ===================================================================== -->
|
|||
|
|
</repositories>
|
|||
|
|
|
|||
|
|
<dependencies>
|
|||
|
|
<!-- 核心依赖 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.projectlombok</groupId>
|
|||
|
|
<artifactId>lombok</artifactId>
|
|||
|
|
<optional>true</optional>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- Jackson JSON 支持 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|||
|
|
<artifactId>jackson-databind</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.fasterxml.jackson.datatype</groupId>
|
|||
|
|
<artifactId>jackson-datatype-jsr310</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- 验证API -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>jakarta.validation</groupId>
|
|||
|
|
<artifactId>jakarta.validation-api</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- Apache Commons 工具 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.apache.commons</groupId>
|
|||
|
|
<artifactId>commons-lang3</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- 如果需要 Web 相关类(拦截器等) -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.springframework</groupId>
|
|||
|
|
<artifactId>spring-web</artifactId>
|
|||
|
|
<scope>provided</scope>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.github.xiaoymin</groupId>
|
|||
|
|
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
<!-- springAI框架 -->
|
|||
|
|
<!-- <dependency>-->
|
|||
|
|
<!-- <groupId>org.springframework.ai</groupId>-->
|
|||
|
|
<!-- <artifactId>spring-ai-starter-model-openai</artifactId>-->
|
|||
|
|
<!-- <version>1.0.0</version>-->
|
|||
|
|
<!-- </dependency>-->
|
|||
|
|
<!-- Servlet API -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>jakarta.servlet</groupId>
|
|||
|
|
<artifactId>jakarta.servlet-api</artifactId>
|
|||
|
|
<scope>provided</scope>
|
|||
|
|
</dependency>
|
|||
|
|
<!-- S7connector 依赖 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.github.s7connector</groupId>
|
|||
|
|
<artifactId>s7connector</artifactId>
|
|||
|
|
<version>2.1</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- modbus4j -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.infiniteautomation</groupId>
|
|||
|
|
<artifactId>modbus4j</artifactId>
|
|||
|
|
<version>3.0.3</version> <!-- 或其他稳定版本 -->
|
|||
|
|
</dependency>
|
|||
|
|
<!-- 连接池(工业场景必加,优化多设备连接) -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.apache.commons</groupId>
|
|||
|
|
<artifactId>commons-pool2</artifactId>
|
|||
|
|
<version>2.12.0</version>
|
|||
|
|
</dependency>
|
|||
|
|
<!-- Spring Context(如果需要 @Component 等注解) -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.springframework</groupId>
|
|||
|
|
<artifactId>spring-context</artifactId>
|
|||
|
|
<scope>provided</scope>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>com.auth0</groupId>
|
|||
|
|
<artifactId>java-jwt</artifactId>
|
|||
|
|
<version>${jwt.version}</version>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.testng</groupId>
|
|||
|
|
<artifactId>testng</artifactId>
|
|||
|
|
<version>RELEASE</version>
|
|||
|
|
<scope>test</scope>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-test</artifactId>
|
|||
|
|
<scope>test</scope>
|
|||
|
|
</dependency>
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.junit.jupiter</groupId>
|
|||
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|||
|
|
<scope>test</scope>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- websocket 核心依赖 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-starter-websocket</artifactId>
|
|||
|
|
</dependency>
|
|||
|
|
</dependencies>
|
|||
|
|
|
|||
|
|
<build>
|
|||
|
|
<plugins>
|
|||
|
|
<plugin>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|||
|
|
<configuration>
|
|||
|
|
<skip>true</skip>
|
|||
|
|
</configuration>
|
|||
|
|
</plugin>
|
|||
|
|
</plugins>
|
|||
|
|
</build>
|
|||
|
|
</project>
|