Browse Source

Added some maven magic to get a build directory that contains everything necessary for standalone operation

master
Drew Short 11 years ago
parent
commit
615bfe688a
  1. 21
      pom.xml

21
pom.xml

@ -122,6 +122,7 @@
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>2.4</version> <version>2.4</version>
<configuration> <configuration>
<outputDirectory>${project.build.directory}/build/</outputDirectory>
<archive> <archive>
<manifest> <manifest>
<addClasspath>true</addClasspath> <addClasspath>true</addClasspath>
@ -143,7 +144,7 @@
<goal>copy-dependencies</goal> <goal>copy-dependencies</goal>
</goals> </goals>
<configuration> <configuration>
<outputDirectory>${project.build.directory}/lib/</outputDirectory>
<outputDirectory>${project.build.directory}/build/lib</outputDirectory>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
@ -160,7 +161,23 @@
<goal>copy-resources</goal> <goal>copy-resources</goal>
</goals> </goals>
<configuration> <configuration>
<outputDirectory>${basedir}/target</outputDirectory>
<outputDirectory>${project.build.directory}</outputDirectory>
<resources>
<resource>
<directory>src/includes</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-resources-package</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/build</outputDirectory>
<resources> <resources>
<resource> <resource>
<directory>src/includes</directory> <directory>src/includes</directory>

Loading…
Cancel
Save