mirror of
https://github.com/songoda/EpicAnchors.git
synced 2024-10-31 23:59:35 +01:00
2eec844447
The new database API introduced a lot of breaking changes and changed behaviour sadly. When migrating this plugin to the new API these were not taken into account properly and essentially broke the whole database/storage layer of the plugin. * SQL statements that were valid in SQLite but are not in H2, which is now the default * H2 jdbc driver not being shaded into the final jar * catching exceptions, logging a message, and then continuing code execution (in the core) * introducing race conditions * ... These fixes sometimes rely on the non-multi-threaded APIs provided now which will most certaintly come with a performance hit on larger servers. But at least it works again... tbh I do not really want to spend too much time fixing this stuff... A potential issue that still exists in the use of `DataManager#getNextId` in `AnchorManagerImpl`. Right now it returns a value based on the largest ID currently in the database – Completely circumventing the whole auto_increment characteristic of the table schema... This is another changed behaviour that gets introduced opening the possibility for conflicting IDs *outside* of the database table itself. The ID can be used as a reference in other places
100 lines
3.7 KiB
XML
100 lines
3.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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>
|
|
|
|
<parent>
|
|
<groupId>com.craftaro</groupId>
|
|
<artifactId>EpicAnchors-Parent</artifactId>
|
|
<version>3.0.0-b2-SNAPSHOT</version>
|
|
<relativePath>../pom.xml</relativePath>
|
|
</parent>
|
|
<artifactId>EpicAnchors-Plugin</artifactId>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.5.1</version>
|
|
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
|
|
<configuration>
|
|
<finalName>${project.parent.name}-${project.version}</finalName>
|
|
|
|
<shadedArtifactAttached>false</shadedArtifactAttached>
|
|
<useDependencyReducedPomInJar>true</useDependencyReducedPomInJar>
|
|
<minimizeJar>true</minimizeJar>
|
|
|
|
<relocations>
|
|
<relocation>
|
|
<pattern>com.craftaro.core</pattern>
|
|
<shadedPattern>com.craftaro.epicanchors.core</shadedPattern>
|
|
</relocation>
|
|
</relocations>
|
|
|
|
<filters>
|
|
<filter>
|
|
<artifact>*:*</artifact>
|
|
|
|
<excludes>
|
|
<exclude>META-INF/**</exclude>
|
|
<exclude>LICENSE</exclude>
|
|
<exclude>LICENSE.**</exclude>
|
|
</excludes>
|
|
</filter>
|
|
|
|
<filter>
|
|
<artifact>com.craftaro:CraftaroCore</artifact>
|
|
<excludeDefaults>false</excludeDefaults>
|
|
<includes>
|
|
<include>**/nms/v*/**</include>
|
|
<include>**/core/third_party/org/h2/**</include>
|
|
</includes>
|
|
</filter>
|
|
</filters>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
</build>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.craftaro</groupId>
|
|
<artifactId>EpicAnchors-API</artifactId>
|
|
<version>${project.parent.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.craftaro</groupId>
|
|
<artifactId>CraftaroCore</artifactId>
|
|
<version>${craftaro.coreVersion}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.spigotmc</groupId>
|
|
<artifactId>spigot-api</artifactId>
|
|
<version>1.8-R0.1-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|