mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-05 23:22:47 +00:00
Add support for derby database
Apache Derby is an simple embeddable SQL database. It stores data in a plain file.
This commit is contained in:
15
pom.xml
15
pom.xml
@@ -93,9 +93,18 @@
|
||||
<descriptors>
|
||||
<descriptor>src/assembly/distribution-mysql5-bin.xml</descriptor>
|
||||
<descriptor>src/assembly/distribution-h2-bin.xml</descriptor>
|
||||
<descriptor>src/assembly/distribution-derby-bin.xml</descriptor>
|
||||
<descriptor>src/assembly/distribution-src.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>assembly</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
@@ -168,6 +177,11 @@
|
||||
<type>jar</type>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.derby</groupId>
|
||||
<artifactId>derby</artifactId>
|
||||
<version>10.8.1.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-dbcp</groupId>
|
||||
<artifactId>commons-dbcp</artifactId>
|
||||
@@ -234,7 +248,6 @@
|
||||
<type>jar</type>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<!-- vfs -->
|
||||
</dependencies>
|
||||
|
||||
<repositories>
|
||||
|
||||
50
src/assembly/distribution-derby-bin.xml
Normal file
50
src/assembly/distribution-derby-bin.xml
Normal file
@@ -0,0 +1,50 @@
|
||||
<assembly
|
||||
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
|
||||
<id>derby-bin</id>
|
||||
<formats>
|
||||
<!-- <format>tar.gz</format> -->
|
||||
<!-- <format>tar.bz2</format> -->
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
<baseDirectory></baseDirectory>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>${project.basedir}</directory>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
<includes>
|
||||
<include>data/**</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>.gitignore</exclude>
|
||||
<exclude>data/cache/**</exclude>
|
||||
<exclude>data/pathing.db</exclude>
|
||||
<exclude>data/database.h2.*</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>${project.basedir}/dist</directory>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>${project.build.directory}</directory>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
<includes>
|
||||
<include>${project.artifactId}-${project.version}.jar</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
<dependencySets>
|
||||
<dependencySet>
|
||||
<outputDirectory>/libs</outputDirectory>
|
||||
<useProjectArtifact>true</useProjectArtifact>
|
||||
<unpack>false</unpack>
|
||||
<scope>runtime</scope>
|
||||
<excludes>
|
||||
<exclude>mysql:*</exclude>
|
||||
<exclude>com.h2database:*</exclude>
|
||||
</excludes>
|
||||
</dependencySet>
|
||||
</dependencySets>
|
||||
</assembly>
|
||||
@@ -46,8 +46,9 @@
|
||||
<unpack>false</unpack>
|
||||
<scope>runtime</scope>
|
||||
<excludes>
|
||||
<exclude>mysql:mysql-connector-java</exclude>
|
||||
<exclude>mysql:*</exclude>
|
||||
<exclude>org.apache.derby:*</exclude>
|
||||
</excludes>
|
||||
</dependencySet>
|
||||
</dependencySets>
|
||||
</assembly>
|
||||
</assembly>
|
||||
|
||||
@@ -46,8 +46,9 @@
|
||||
<unpack>false</unpack>
|
||||
<scope>runtime</scope>
|
||||
<excludes>
|
||||
<exclude>com.h2database:h2</exclude>
|
||||
<exclude>com.h2database:*</exclude>
|
||||
<exclude>org.apache.derby:*</exclude>
|
||||
</excludes>
|
||||
</dependencySet>
|
||||
</dependencySets>
|
||||
</assembly>
|
||||
</assembly>
|
||||
|
||||
Reference in New Issue
Block a user