优化构建配置和网络连接设置

- 移除特定平台的JAVE依赖,改用Maven profiles实现跨平台支持
- 更新开发环境配置使用Tailscale网络地址(100.80.201.143)
- 添加macOS Apple Silicon和Linux x86_64的Maven profiles配置
- 升级JAVE版本到3.5.0并优化依赖管理
- 清理代码格式,移除多余的空行导入
This commit is contained in:
irving
2025-09-06 19:42:41 -04:00
parent 102608b85c
commit dd2342a234
5 changed files with 59 additions and 67376 deletions

55
pom.xml
View File

@@ -50,7 +50,7 @@
<easyexcel.version>2.2.11</easyexcel.version>
<!-- weichat-->
<weixin-java.version>4.6.0</weixin-java.version>
<ws-schild.version>3.1.1</ws-schild.version>
<ws-schild.version>3.5.0</ws-schild.version>
<!-- Lombok -->
<lombok.version>1.18.30</lombok.version>
<!-- Flyway -->
@@ -225,6 +225,13 @@
<artifactId>jave-nativebin-linux64</artifactId>
<version>${ws-schild.version}</version>
</dependency>
<dependency>
<groupId>ws.schild</groupId>
<artifactId>jave-nativebin-osxm1</artifactId>
<version>${ws-schild.version}</version>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
@@ -249,6 +256,14 @@
</dependencyManagement>
<build>
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.7.1</version>
</extension>
</extensions>
<plugins>
<!-- Spotless Maven Plugin for Code Formatting -->
<plugin>
@@ -316,4 +331,42 @@
-->
</plugins>
</build>
<profiles>
<!-- macOS Apple Silicon -->
<profile>
<id>osx-arm64</id>
<activation>
<os>
<name>Mac OS X</name>
<arch>aarch64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>ws.schild</groupId>
<artifactId>jave-nativebin-osxm1</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<!-- 部署容器Linux x86_64 -->
<profile>
<id>linux-x86_64</id>
<activation>
<os>
<name>Linux</name>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>ws.schild</groupId>
<artifactId>jave-nativebin-linux64</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
</profiles>
</project>