|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + |
| 7 | + <groupId>de.marvin</groupId> |
| 8 | + <artifactId>tictactoe</artifactId> |
| 9 | + <version>1.0.0</version> |
| 10 | + <packaging>jar</packaging> |
| 11 | + |
| 12 | + <name>TicTacToe</name> |
| 13 | + <description>Ein Tic-Tac-Toe Spiel mit KI-Gegnern</description> |
| 14 | + |
| 15 | + <properties> |
| 16 | + <maven.compiler.source>17</maven.compiler.source> |
| 17 | + <maven.compiler.target>17</maven.compiler.target> |
| 18 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 19 | + </properties> |
| 20 | + |
| 21 | + <build> |
| 22 | + <plugins> |
| 23 | + <!-- Java Compiler --> |
| 24 | + <plugin> |
| 25 | + <groupId>org.apache.maven.plugins</groupId> |
| 26 | + <artifactId>maven-compiler-plugin</artifactId> |
| 27 | + <version>3.10.1</version> |
| 28 | + <configuration> |
| 29 | + <source>17</source> |
| 30 | + <target>17</target> |
| 31 | + </configuration> |
| 32 | + </plugin> |
| 33 | + |
| 34 | + <!-- JAR mit Main-Class --> |
| 35 | + <plugin> |
| 36 | + <groupId>org.apache.maven.plugins</groupId> |
| 37 | + <artifactId>maven-jar-plugin</artifactId> |
| 38 | + <version>3.2.2</version> |
| 39 | + <configuration> |
| 40 | + <archive> |
| 41 | + <manifest> |
| 42 | + <mainClass>TicTacToe</mainClass> |
| 43 | + </manifest> |
| 44 | + </archive> |
| 45 | + <finalName>TicTacToe</finalName> |
| 46 | + </configuration> |
| 47 | + </plugin> |
| 48 | + |
| 49 | + <!-- Shade Plugin für Uber-JAR (optional, für selbstständiges JAR) --> |
| 50 | + <plugin> |
| 51 | + <groupId>org.apache.maven.plugins</groupId> |
| 52 | + <artifactId>maven-shade-plugin</artifactId> |
| 53 | + <version>3.4.1</version> |
| 54 | + <executions> |
| 55 | + <execution> |
| 56 | + <phase>package</phase> |
| 57 | + <goals> |
| 58 | + <goal>shade</goal> |
| 59 | + </goals> |
| 60 | + <configuration> |
| 61 | + <transformers> |
| 62 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 63 | + <mainClass>TicTacToe</mainClass> |
| 64 | + </transformer> |
| 65 | + </transformers> |
| 66 | + <finalName>TicTacToe-${project.version}</finalName> |
| 67 | + </configuration> |
| 68 | + </execution> |
| 69 | + </executions> |
| 70 | + </plugin> |
| 71 | + </plugins> |
| 72 | + </build> |
| 73 | +</project> |
| 74 | + |
0 commit comments