Maven projects fixes and improvements
* Fixed copy of the SQL files to the distribution * Distribution packages will now execute an automatic clean-up before assembling. While this will avoid having dirty, old files in the distribution directory, it also has a negative consequence - configuration files will be destroyed if they exist.
This commit is contained in:
parent
24f40c5549
commit
30a1080e6e
4 changed files with 39 additions and 3 deletions
|
@ -24,9 +24,23 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<!-- Use the assembly plug-in to generate the distribution -->
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<!-- Clean the target directory before generating the distribution -->
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-clean-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>clean-before-assembly</id>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>clean</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<!-- Use the assembly plug-in to generate the distribution -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
|
@ -48,5 +62,6 @@
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
|
@ -46,7 +46,8 @@
|
||||||
<directory>../legacyworlds-server-data/db-structure</directory>
|
<directory>../legacyworlds-server-data/db-structure</directory>
|
||||||
<outputDirectory>sql</outputDirectory>
|
<outputDirectory>sql</outputDirectory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**.sql</include>
|
<include>*.sql</include>
|
||||||
|
<include>parts/**</include>
|
||||||
<include>db-config.sample.txt</include>
|
<include>db-config.sample.txt</include>
|
||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
|
|
|
@ -32,9 +32,23 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<!-- Use the assembly plug-in to generate the distribution -->
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<!-- Clean the target directory before generating the distribution -->
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-clean-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>clean-before-assembly</id>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>clean</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
|
<!-- Use the assembly plug-in to generate the distribution -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
|
|
|
@ -53,6 +53,12 @@
|
||||||
<artifactId>tomcat-maven-plugin</artifactId>
|
<artifactId>tomcat-maven-plugin</artifactId>
|
||||||
<version>1.1</version>
|
<version>1.1</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-clean-plugin</artifactId>
|
||||||
|
<version>2.4.1</version>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
|
|
Reference in a new issue