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"
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">
<modelVersion>4.0.0</modelVersion>
<groupId>de.m-viper</groupId>
<artifactId>TpPlugin</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.1</version>
<packaging>jar</packaging>
<name>TpPlugin</name>
@@ -25,16 +26,33 @@
</repositories>
<dependencies>
<!-- Spigot API als provided, da der Server sie zur Laufzeit bereitstellt -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.21.5-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</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>
<build>
<plugins>
<!-- Compiler Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@@ -44,10 +62,12 @@
<target>17</target>
</configuration>
</plugin>
<!-- Shade Plugin für bStats (empfohlen, um Konflikte zu vermeiden) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<version>3.3.0</version>
<executions>
<execution>
<phase>package</phase>
@@ -55,12 +75,20 @@
<goal>shade</goal>
</goals>
<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>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
@@ -72,4 +100,5 @@
</resource>
</resources>
</build>
</project>