commit c34abe68ed906751918a044820083c3509ccee05 Author: 你的Gitea用户名 <你的邮箱> Date: Wed Sep 17 10:26:40 2025 +0800 首次提交:初始化项目,包含 client 和 server 模块的 pom.xml 等文件 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8d9590a Binary files /dev/null and b/.gitignore differ diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c5f3f6b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file diff --git a/client/pom.xml b/client/pom.xml new file mode 100644 index 0000000..1b4e8a3 --- /dev/null +++ b/client/pom.xml @@ -0,0 +1,83 @@ + + + 4.0.0 + + + com.example + game-parent + 1.0-SNAPSHOT + ../pom.xml + + + game-client + Game Client + http://www.example.com + + + + + + com.example + core + + + + + com.badlogicgames.gdx + gdx + + + com.badlogicgames.gdx + gdx-backend-lwjgl3 + + + com.badlogicgames.gdx + gdx-platform + natives-desktop + + + + + junit + junit + test + + + + + + + + + maven-compiler-plugin + + + + + maven-assembly-plugin + + + jar-with-dependencies + + + + com.example.client.DesktopLauncher + + + + + + make-assembly + package + + single + + + + + + + + \ No newline at end of file diff --git a/client/src/main/java/com/example/App.java b/client/src/main/java/com/example/App.java new file mode 100644 index 0000000..b6bcb1d --- /dev/null +++ b/client/src/main/java/com/example/App.java @@ -0,0 +1,13 @@ +package com.example; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/client/src/test/java/com/example/AppTest.java b/client/src/test/java/com/example/AppTest.java new file mode 100644 index 0000000..22a94ca --- /dev/null +++ b/client/src/test/java/com/example/AppTest.java @@ -0,0 +1,20 @@ +package com.example; + +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +/** + * Unit test for simple App. + */ +public class AppTest +{ + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() + { + assertTrue( true ); + } +} diff --git a/client/target/classes/com/example/App.class b/client/target/classes/com/example/App.class new file mode 100644 index 0000000..b0b5fd6 Binary files /dev/null and b/client/target/classes/com/example/App.class differ diff --git a/client/target/test-classes/com/example/AppTest.class b/client/target/test-classes/com/example/AppTest.class new file mode 100644 index 0000000..887b931 Binary files /dev/null and b/client/target/test-classes/com/example/AppTest.class differ diff --git a/core/pom.xml b/core/pom.xml new file mode 100644 index 0000000..2e5248d --- /dev/null +++ b/core/pom.xml @@ -0,0 +1,39 @@ + + + 4.0.0 + + + com.example + game-parent + 1.0-SNAPSHOT + ../pom.xml + + + + core + Game Core + http://www.example.com + + + + + + junit + junit + test + + + + + + + + + maven-compiler-plugin + + + + + \ No newline at end of file diff --git a/core/src/main/java/com/example/App.java b/core/src/main/java/com/example/App.java new file mode 100644 index 0000000..b6bcb1d --- /dev/null +++ b/core/src/main/java/com/example/App.java @@ -0,0 +1,13 @@ +package com.example; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/core/src/test/java/com/example/AppTest.java b/core/src/test/java/com/example/AppTest.java new file mode 100644 index 0000000..22a94ca --- /dev/null +++ b/core/src/test/java/com/example/AppTest.java @@ -0,0 +1,20 @@ +package com.example; + +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +/** + * Unit test for simple App. + */ +public class AppTest +{ + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() + { + assertTrue( true ); + } +} diff --git a/core/target/classes/com/example/App.class b/core/target/classes/com/example/App.class new file mode 100644 index 0000000..b0b5fd6 Binary files /dev/null and b/core/target/classes/com/example/App.class differ diff --git a/core/target/test-classes/com/example/AppTest.class b/core/target/test-classes/com/example/AppTest.class new file mode 100644 index 0000000..887b931 Binary files /dev/null and b/core/target/test-classes/com/example/AppTest.class differ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..c96466a --- /dev/null +++ b/pom.xml @@ -0,0 +1,107 @@ + + + 4.0.0 + + + com.example + game-parent + 1.0-SNAPSHOT + pom + Game Parent + + + + core + client + server + + + + + UTF-8 + 21 + 21 + 1.12.1 + 4.13.2 + + + + + + + + com.example + core + ${project.version} + + + + + com.badlogicgames.gdx + gdx + ${gdx.version} + + + com.badlogicgames.gdx + gdx-backend-lwjgl3 + ${gdx.version} + + + com.badlogicgames.gdx + gdx-platform + ${gdx.version} + natives-desktop + + + + + junit + junit + ${junit.version} + test + + + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + ${maven.compiler.source} + ${maven.compiler.target} + + + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.3.0 + + + + + maven-clean-plugin + 3.3.2 + + + maven-resources-plugin + 3.3.1 + + + maven-jar-plugin + 3.3.0 + + + + + + \ No newline at end of file diff --git a/server/pom.xml b/server/pom.xml new file mode 100644 index 0000000..23c393e --- /dev/null +++ b/server/pom.xml @@ -0,0 +1,68 @@ + + + 4.0.0 + + + com.example + game-parent + 1.0-SNAPSHOT + ../pom.xml + + + server + Game Server + http://www.example.com + + + + + + com.example + core + + + + + junit + junit + test + + + + + + + + + maven-compiler-plugin + + + + + maven-assembly-plugin + + + jar-with-dependencies + + + + com.example.server.ServerLauncher + + + + + + make-assembly + package + + single + + + + + + + + \ No newline at end of file diff --git a/server/src/main/java/com/example/App.java b/server/src/main/java/com/example/App.java new file mode 100644 index 0000000..b6bcb1d --- /dev/null +++ b/server/src/main/java/com/example/App.java @@ -0,0 +1,13 @@ +package com.example; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/server/src/test/java/com/example/AppTest.java b/server/src/test/java/com/example/AppTest.java new file mode 100644 index 0000000..22a94ca --- /dev/null +++ b/server/src/test/java/com/example/AppTest.java @@ -0,0 +1,20 @@ +package com.example; + +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +/** + * Unit test for simple App. + */ +public class AppTest +{ + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() + { + assertTrue( true ); + } +} diff --git a/server/target/classes/com/example/App.class b/server/target/classes/com/example/App.class new file mode 100644 index 0000000..b0b5fd6 Binary files /dev/null and b/server/target/classes/com/example/App.class differ diff --git a/server/target/test-classes/com/example/AppTest.class b/server/target/test-classes/com/example/AppTest.class new file mode 100644 index 0000000..887b931 Binary files /dev/null and b/server/target/test-classes/com/example/AppTest.class differ