- 禁用TCP红绿灯服务器,改用MQTT订阅获取信号状态 - 新增MqttConfig配置类和TrafficLightMqttSubscriber订阅器 - 重构VehicleCommandInfoWebSocketHandler,根据红绿灯信号实时发送车辆控制指令 - 添加Eclipse Paho MQTT客户端依赖 - 新增接口文档和MQTT核心代码总结文档 - 添加WebSocket测试页面
189 lines
6.1 KiB
XML
189 lines
6.1 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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<parent>
|
|
<artifactId>qaup-management</artifactId>
|
|
<groupId>com.qaup</groupId>
|
|
<version>1.0.1</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<artifactId>qaup-collision</artifactId>
|
|
|
|
<description>
|
|
collision碰撞避免系统模块
|
|
</description>
|
|
|
|
<repositories>
|
|
<!-- GeoTools仓库 -->
|
|
<repository>
|
|
<id>osgeo</id>
|
|
<name>OSGeo Release Repository</name>
|
|
<url>https://repo.osgeo.org/repository/release/</url>
|
|
<snapshots><enabled>false</enabled></snapshots>
|
|
<releases><enabled>true</enabled></releases>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
|
|
<!-- 通用工具 -->
|
|
<dependency>
|
|
<groupId>com.qaup</groupId>
|
|
<artifactId>qaup-common</artifactId>
|
|
<version>${qaup.version}</version>
|
|
</dependency>
|
|
|
|
<!-- 系统模块 - 用于数据适配器 -->
|
|
<dependency>
|
|
<groupId>com.qaup</groupId>
|
|
<artifactId>qaup-system</artifactId>
|
|
<version>${qaup.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Spring Boot Web -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Spring Boot WebSocket -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-websocket</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Spring Boot Redis -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Redis连接池 -->
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-pool2</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Spring Boot Validation -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Spring Boot Data JPA -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Hibernate Spatial (for PostGIS support) -->
|
|
<dependency>
|
|
<groupId>org.hibernate.orm</groupId>
|
|
<artifactId>hibernate-spatial</artifactId>
|
|
<version>6.1.7.Final</version>
|
|
</dependency>
|
|
|
|
<!-- Spring Kafka -->
|
|
<dependency>
|
|
<groupId>org.springframework.kafka</groupId>
|
|
<artifactId>spring-kafka</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Java Topology Suite (JTS) for spatial operations -->
|
|
<dependency>
|
|
<groupId>org.locationtech.jts</groupId>
|
|
<artifactId>jts-core</artifactId>
|
|
</dependency>
|
|
|
|
<!-- GeoTools 核心依赖 (Java 8兼容版本) -->
|
|
<dependency>
|
|
<groupId>org.geotools</groupId>
|
|
<artifactId>gt-main</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.geotools</groupId>
|
|
<artifactId>gt-referencing</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.geotools</groupId>
|
|
<artifactId>gt-epsg-hsql</artifactId>
|
|
</dependency>
|
|
|
|
<!-- PostGIS JDBC Extension (Java 8兼容版本) -->
|
|
<dependency>
|
|
<groupId>net.postgis</groupId>
|
|
<artifactId>postgis-jdbc</artifactId>
|
|
</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>
|
|
|
|
<!-- Spring Boot Actuator -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Lombok (按官网标准配置) -->
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Spring Boot Test -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- Eclipse Paho MQTT Client -->
|
|
<dependency>
|
|
<groupId>org.eclipse.paho</groupId>
|
|
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
|
|
<version>1.2.5</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- Maven编译器插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.14.0</version>
|
|
<configuration>
|
|
<release>${java.version}</release>
|
|
<encoding>${project.build.sourceEncoding}</encoding>
|
|
<parameters>true</parameters>
|
|
<compilerArgs>
|
|
<arg>-parameters</arg>
|
|
</compilerArgs>
|
|
<annotationProcessorPaths>
|
|
<path>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>${lombok.version}</version>
|
|
</path>
|
|
</annotationProcessorPaths>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project>
|