pom.xml aktualisiert

This commit is contained in:
2025-08-11 15:35:38 +00:00
parent 9437ccac2a
commit c7f91112a6

33
pom.xml
View File

@@ -2,11 +2,12 @@
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>de.m-viper</groupId> <groupId>de.m-viper</groupId>
<artifactId>TpPlugin</artifactId> <artifactId>TpPlugin</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.1</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>TpPlugin</name> <name>TpPlugin</name>
@@ -25,16 +26,33 @@
</repositories> </repositories>
<dependencies> <dependencies>
<!-- Spigot API als provided, da der Server sie zur Laufzeit bereitstellt -->
<dependency> <dependency>
<groupId>org.spigotmc</groupId> <groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId> <artifactId>spigot-api</artifactId>
<version>1.21.5-R0.1-SNAPSHOT</version> <version>1.21.5-R0.1-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- bStats Bukkit -->
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.1.0</version>
<scope>compile</scope>
</dependency>
<!-- org.json für JSON Parsing des UpdateCheckers -->
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20240303</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<!-- Compiler Plugin -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
@@ -44,10 +62,12 @@
<target>17</target> <target>17</target>
</configuration> </configuration>
</plugin> </plugin>
<!-- Shade Plugin für bStats (empfohlen, um Konflikte zu vermeiden) -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version> <version>3.3.0</version>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <phase>package</phase>
@@ -55,12 +75,20 @@
<goal>shade</goal> <goal>shade</goal>
</goals> </goals>
<configuration> <configuration>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<!-- Passe diesen Namespace an dein Plugin Package an -->
<shadedPattern>de.m_viper.shaded.bstats</shadedPattern>
</relocation>
</relocations>
<createDependencyReducedPom>false</createDependencyReducedPom> <createDependencyReducedPom>false</createDependencyReducedPom>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>
<resources> <resources>
<resource> <resource>
<directory>src/main/resources</directory> <directory>src/main/resources</directory>
@@ -72,4 +100,5 @@
</resource> </resource>
</resources> </resources>
</build> </build>
</project> </project>