Skip to content

Commit

Permalink
Move data_dir out of geoserver.war
Browse files Browse the repository at this point in the history
  • Loading branch information
mweisman committed Jan 11, 2013
1 parent 79aa999 commit 3a4697a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
14 changes: 14 additions & 0 deletions data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<assembly>
<id>data</id>
<baseDirectory>data</baseDirectory>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>src/main/webapp/data/</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
</assembly>
24 changes: 23 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,35 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.3</version>
<configuration>
<descriptors>
<descriptor>data.xml</descriptor>
</descriptors>
<finalName>data</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>geoserver</warName>
<webappDirectory>${project.build.directory}/geoserver</webappDirectory> -->
<webappDirectory>${project.build.directory}/geoserver</webappDirectory>
<packagingExcludes>**/data/</packagingExcludes>
</configuration>
<executions>
<execution>
Expand Down

0 comments on commit 3a4697a

Please sign in to comment.