Skip to content

Commit

Permalink
Merge pull request #6 from mweisman/war_improvements
Browse files Browse the repository at this point in the history
Geoserver War improvements
  • Loading branch information
Jeffrey Johnson committed Jan 14, 2013
2 parents 3a295fe + 3a4697a commit 60d4ba0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 14 deletions.
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>
37 changes: 23 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,6 @@
<artifactId>ftp</artifactId>
<version>${geoserver.version}</version>
</dependency-->
<dependency>
<groupId>org.geoserver.web</groupId>
<artifactId>web-app</artifactId>
<type>jar</type>
<version>${geoserver.version}</version>
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
Expand Down Expand Up @@ -310,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 60d4ba0

Please sign in to comment.