2025-09-19 08:13:07 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2025-09-18 09:15:05 +08:00
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0">
|
2025-09-25 18:43:36 +08:00
|
|
|
|
|
2025-09-19 08:13:07 +08:00
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
|
2025-09-19 08:13:07 +08:00
|
|
|
|
<groupId>uno.mloluyu</groupId>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
|
2025-09-19 08:13:07 +08:00
|
|
|
|
<artifactId>game</artifactId>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
|
2025-09-19 08:13:07 +08:00
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
|
2025-09-19 08:13:07 +08:00
|
|
|
|
<packaging>jar</packaging>
|
2025-09-22 11:37:04 +08:00
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<maven.compiler.source>21</maven.compiler.source>
|
|
|
|
|
|
<maven.compiler.target>21</maven.compiler.target>
|
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
|
<gdx.version>1.12.1</gdx.version>
|
|
|
|
|
|
|
|
|
|
|
|
</properties>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
|
2025-09-19 08:13:07 +08:00
|
|
|
|
<dependencies>
|
2025-09-23 21:46:12 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.badlogicgames.gdx</groupId>
|
|
|
|
|
|
<artifactId>gdx</artifactId>
|
|
|
|
|
|
<version>1.12.1</version> <!-- 替换为你的 LibGDX 版本 -->
|
|
|
|
|
|
</dependency>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
|
2025-09-23 21:46:12 +08:00
|
|
|
|
<!-- FreeType 字体扩展 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.badlogicgames.gdx</groupId>
|
|
|
|
|
|
<artifactId>gdx-freetype</artifactId>
|
|
|
|
|
|
<version>1.12.1</version> <!-- 与 LibGDX 版本保持一致 -->
|
|
|
|
|
|
</dependency>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
|
2025-09-23 21:46:12 +08:00
|
|
|
|
<!-- 桌面平台的 FreeType 原生库 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.badlogicgames.gdx</groupId>
|
|
|
|
|
|
<artifactId>gdx-freetype-platform</artifactId>
|
|
|
|
|
|
<version>1.12.1</version>
|
|
|
|
|
|
<classifier>natives-desktop</classifier>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.badlogicgames.gdx</groupId>
|
|
|
|
|
|
<artifactId>gdx-backend-lwjgl</artifactId>
|
|
|
|
|
|
<version>1.12.1</version> <!-- 使用你的 LibGDX 版本号 -->
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.badlogicgames.gdx</groupId>
|
|
|
|
|
|
<artifactId>gdx-platform</artifactId>
|
|
|
|
|
|
<version>1.12.1</version>
|
|
|
|
|
|
<classifier>natives-desktop</classifier>
|
|
|
|
|
|
</dependency>
|
2025-09-19 08:13:07 +08:00
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.badlogicgames.gdx</groupId>
|
|
|
|
|
|
<artifactId>gdx</artifactId>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
<version>1.12.1</version>
|
2025-09-19 08:13:07 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.badlogicgames.gdx</groupId>
|
|
|
|
|
|
<artifactId>gdx-backend-lwjgl3</artifactId>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
<version>1.12.1</version>
|
2025-09-19 08:13:07 +08:00
|
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.badlogicgames.gdx</groupId>
|
|
|
|
|
|
<artifactId>gdx-platform</artifactId>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
<version>1.12.1</version>
|
2025-09-19 08:13:07 +08:00
|
|
|
|
<classifier>natives-desktop</classifier>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
|
<version>3.13.0</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<!-- 建议使用与LibGDX兼容的JDK版本,11或17比较合适 -->
|
|
|
|
|
|
<source>17</source>
|
|
|
|
|
|
<target>17</target>
|
|
|
|
|
|
<!-- 移除不必要的预览特性,除非确实需要 -->
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
|
2025-09-19 08:13:07 +08:00
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
|
|
<version>3.1.0</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<!-- 确保这个类路径与你实际的Launcher类位置一致 -->
|
|
|
|
|
|
<!-- 例如:如果你的类文件在src/main/java/uno/mloluyu/Launcher.java -->
|
2025-09-25 18:43:36 +08:00
|
|
|
|
<mainClass>uno.mloluyu.desktop.DesktopLauncher</mainClass>
|
2025-09-19 08:13:07 +08:00
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
|
2025-09-19 08:13:07 +08:00
|
|
|
|
<!-- 添加运行时类路径配置,解决类找不到问题 -->
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
|
|
<version>3.3.0</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<archive>
|
|
|
|
|
|
<manifest>
|
|
|
|
|
|
<addClasspath>true</addClasspath>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
<mainClass>uno.mloluyu.desktop.DesktopLauncher</mainClass>
|
2025-09-19 08:13:07 +08:00
|
|
|
|
</manifest>
|
|
|
|
|
|
</archive>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
2025-09-25 18:43:36 +08:00
|
|
|
|
|
|
|
|
|
|
|
2025-09-19 08:13:07 +08:00
|
|
|
|
</project>
|