- 业务代码全部迁移至 src/main/java(Lombok 替代 Kotlin 数据类),pom 移除 Kotlin 依赖 - Agent(WS客户端/看门狗/日志流/升级)拆出至 hospital-front-agent 独立 Python 仓库,本仓库删除 agent 包 - pac/ 部署目录移除:app-jinghe.yml 迁入 resources,部署脚本与配置由 agent 仓库及部署文档承接 - BsmOrderMapper.xml SQL 调整、app.yml 更新 Co-Authored-By: Claude <noreply@anthropic.com>
197 lines
7.3 KiB
XML
197 lines
7.3 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">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<!--
|
||
Solon 版本说明:
|
||
- Maven Central 上 solon-parent 最新是 4.0.6(短横线命名)
|
||
- 但 mybatis-solon-plugin 4.0.6 与 solon 4.0.6 存在 ABI 不兼容(NoSuchMethodError)
|
||
- 退回 solon-parent 3.10.7(点号命名,生态完整稳定,已实测可启动)
|
||
-->
|
||
<parent>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-parent</artifactId>
|
||
<version>3.10.7</version>
|
||
<relativePath/>
|
||
</parent>
|
||
|
||
<groupId>com.hospital</groupId>
|
||
<artifactId>hospital-front</artifactId>
|
||
<version>1.0.0</version>
|
||
<packaging>jar</packaging>
|
||
<name>hospital-front</name>
|
||
<description>医院前置机程序(Kotlin + Solon 3.10.7)</description>
|
||
|
||
<properties>
|
||
<!-- JDK 与 Kotlin(覆盖 solon-parent 的 java.version=1.8) -->
|
||
<java.version>17</java.version>
|
||
<maven.compiler.source>17</maven.compiler.source>
|
||
<maven.compiler.target>17</maven.compiler.target>
|
||
|
||
<!-- 数据库驱动(solon-parent 不管理) -->
|
||
<ojdbc.version>23.3.0.23.09</ojdbc.version>
|
||
<mssql-jdbc.version>12.6.1.jre11</mssql-jdbc.version>
|
||
<sqlite-jdbc.version>3.46.1.0</sqlite-jdbc.version>
|
||
|
||
<!-- 鉴权 -->
|
||
<sa-token.version>1.39.0</sa-token.version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
<!-- ========== Lombok(简化 POJO:getter/setter/toString 等) ========== -->
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<version>1.18.34</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!-- ========== Solon 核心 ========== -->
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Solon Web 服务器(smart-http 异步) -->
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-server-smarthttp</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Solon YAML 配置支持 -->
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-config-yaml</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Solon Logback 日志桥接 -->
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-logging-logback-jakarta</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Solon 调度(@Scheduled 注解) -->
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-scheduling</artifactId>
|
||
</dependency>
|
||
|
||
<!-- ========== MyBatis-Plus 集成 ========== -->
|
||
<!-- Solon 官方插件(与 Solon 3.10.x ABI 兼容) -->
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>mybatis-plus-solon-plugin</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.baomidou</groupId>
|
||
<artifactId>mybatis-plus</artifactId>
|
||
<version>3.5.9</version>
|
||
</dependency>
|
||
|
||
<!-- ========== 数据库驱动 ========== -->
|
||
<!-- 连接池(Solon 数据源类型) -->
|
||
<dependency>
|
||
<groupId>com.zaxxer</groupId>
|
||
<artifactId>HikariCP</artifactId>
|
||
<version>5.1.0</version>
|
||
</dependency>
|
||
<!-- Oracle -->
|
||
<dependency>
|
||
<groupId>com.oracle.database.jdbc</groupId>
|
||
<artifactId>ojdbc11</artifactId>
|
||
<version>${ojdbc.version}</version>
|
||
</dependency>
|
||
|
||
<!-- SqlServer -->
|
||
<dependency>
|
||
<groupId>com.microsoft.sqlserver</groupId>
|
||
<artifactId>mssql-jdbc</artifactId>
|
||
<version>${mssql-jdbc.version}</version>
|
||
</dependency>
|
||
|
||
<!-- SQLite(B 端 Agent 用) -->
|
||
<dependency>
|
||
<groupId>org.xerial</groupId>
|
||
<artifactId>sqlite-jdbc</artifactId>
|
||
<version>${sqlite-jdbc.version}</version>
|
||
</dependency>
|
||
|
||
<!-- H2(开发 Mock 数据源) -->
|
||
<dependency>
|
||
<groupId>com.h2database</groupId>
|
||
<artifactId>h2</artifactId>
|
||
<version>2.3.232</version>
|
||
<scope>runtime</scope>
|
||
</dependency>
|
||
|
||
<!-- ========== HTTP / WebSocket(Agent 用) ========== -->
|
||
<dependency>
|
||
<groupId>com.squareup.okhttp3</groupId>
|
||
<artifactId>okhttp</artifactId>
|
||
</dependency>
|
||
|
||
<!-- ========== 鉴权(可选,按需启用) ========== -->
|
||
<dependency>
|
||
<groupId>cn.dev33</groupId>
|
||
<artifactId>sa-token-solon-plugin</artifactId>
|
||
<version>${sa-token.version}</version>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- ========== JSON 解析(Solon 生态标准库) ========== -->
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>snack3</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Solon JSON 渲染插件(HTTP 响应自动序列化为 JSON) -->
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-serialization-snack3</artifactId>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
<finalName>hospital-front-${project.version}</finalName>
|
||
|
||
<plugins>
|
||
<!-- 打 fat jar(包含所有依赖) -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-shade-plugin</artifactId>
|
||
<version>3.5.3</version>
|
||
<executions>
|
||
<execution>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>shade</goal>
|
||
</goals>
|
||
<configuration>
|
||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||
<transformers>
|
||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||
<mainClass>com.hospital.front.HospitalFrontApp</mainClass>
|
||
</transformer>
|
||
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
||
</transformers>
|
||
<filters>
|
||
<filter>
|
||
<artifact>*:*</artifact>
|
||
<excludes>
|
||
<exclude>META-INF/*.SF</exclude>
|
||
<exclude>META-INF/*.DSA</exclude>
|
||
<exclude>META-INF/*.RSA</exclude>
|
||
</excludes>
|
||
</filter>
|
||
</filters>
|
||
<finalName>hospital-front-${project.version}</finalName>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project> |