Upload pom.xml via GUI

This commit is contained in:
2026-02-28 19:44:46 +00:00
parent 9300af4978
commit a73ecc7199

165
pom.xml
View File

@@ -1,13 +1,15 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 xsi:schemaLocation="
http://maven.apache.org/xsd/maven-4.0.0.xsd"> http://maven.apache.org/POM/4.0.0
<modelVersion>4.0.0</modelVersion> http://maven.apache.org/xsd/maven-4.0.0.xsd">
<groupId>me.viper</groupId> <modelVersion>4.0.0</modelVersion>
<artifactId>ServerRestorer-Reborn</artifactId> <groupId>de.viper</groupId>
<version>2.0</version> <artifactId>AutoWorldReset</artifactId>
<name>ServerRestorer</name> <version>1.2</version>
<name>AutoWorldReset</name>
<description>Minecraft Plugin für automatisches Welt-Reset mit Multiverse-Core und Cron-Scheduler</description>
<repositories> <repositories>
<repository> <repository>
@@ -16,26 +18,101 @@
</repository> </repository>
</repositories> </repositories>
<properties> <dependencies>
<java.version>17</java.version> <!-- Spigot API -->
<spigot.version>1.21.4-R0.1-SNAPSHOT</spigot.version> <dependency>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <groupId>org.spigotmc</groupId>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <artifactId>spigot-api</artifactId>
</properties> <version>1.21.5-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- Cron-Utils für Cron Parsing -->
<dependency>
<groupId>com.cronutils</groupId>
<artifactId>cron-utils</artifactId>
<version>9.2.0</version>
</dependency>
<!-- Multiverse-Core (lokal installiert) -->
<dependency>
<groupId>com.onarandombox.multiversecore</groupId>
<artifactId>Multiverse-Core</artifactId>
<version>5.1.2</version>
<scope>provided</scope>
</dependency>
<!-- bStats Bukkit Dependency -->
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.1.0</version>
<scope>compile</scope>
</dependency>
<!-- org.json: für JSON Parsing (UpdateChecker) -->
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20240303</version>
</dependency>
</dependencies>
<build> <build>
<finalName>${project.artifactId}</finalName> <plugins>
<defaultGoal>install</defaultGoal> <!-- Maven Compiler Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<!-- Maven Shade Plugin mit Relocation für bStats -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<phase>package</phase>
<goals><goal>shade</goal></goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<!-- Hier deinen Package-Namespace anpassen, z.B. de.viper.shaded.bstats -->
<shadedPattern>de.viper.shaded.bstats</shadedPattern>
</relocation>
</relocations>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>de.viper.autoworldreset.AutoWorldReset</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources> <resources>
<resource> <resource>
<directory>src/main/resources</directory> <directory>src/main/resources</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>true</filtering> <filtering>true</filtering>
<includes> <includes>
<include>plugin.yml</include> <include>plugin.yml</include>
@@ -43,52 +120,6 @@
</includes> </includes>
</resource> </resource>
</resources> </resources>
<plugins>
<!-- Compiler plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
</plugins>
<sourceDirectory>src/main/java</sourceDirectory>
</build> </build>
<dependencies>
<!-- Spigot API -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>${spigot.version}</version>
<scope>provided</scope>
</dependency>
<!-- Commons Net -->
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.6</version>
</dependency>
<!-- JSch for SSH -->
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.55</version>
</dependency>
<!-- JSON Simple -->
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
</project> </project>