pom adjustments: copy libs to /mvnlibs/ for ant, exclude .pdn resources from being added to the jar

This commit is contained in:
yugecin 2017-04-29 22:43:23 +02:00
parent cd6d35ac75
commit aa09a29df7

34
pom.xml
View File

@ -1,5 +1,8 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<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>yugecin</groupId>
<artifactId>opsu-dance</artifactId>
@ -21,6 +24,7 @@
<excludes>
<exclude>**/Thumbs.db</exclude>
<exclude>**/version</exclude>
<exclude>**.pdn</exclude>
</excludes>
</resource>
<resource>
@ -32,6 +36,33 @@
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<filesets>
<fileset>
<directory>${project.basedir}/mvnlibs</directory>
<followSymlinks>true</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.basedir}/mvnlibs</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@ -217,4 +248,5 @@
<version>1.0.3</version>
</dependency>
</dependencies>
</project>