(re-)Building the ArcGIS Geoportal Extension

The ArcGIS Geoportal Extension (GPE) comes as a bunch of web applications, packaged as .war files, executables and scripts. Depending on your requirements you will want to install and/or use a subset of these. Also you will want to customize the look and feel of the portal website.To do any customization requires extracting and/or modifying deployed files or repackaging the web apps; this can be done by tedious and error prone handwork or you can set up an automated build system using Maven.
Using Maven we can use a technique called “war overlays” where we tell maven to construct a war file from a number of sources, including the original distribution .war file.
In our (version controlled) source tree we keep only the files that we want modified, the original .war file and some extra’s that we need in the portal, so we end up in a situation where we have a sparsely filled source tree with a dependency on the originally distributed .war file.

GPE directory layout

Inside our Maven project file this looks as follows, declaring the dependency on the ESRI .war file using system scope, shown below.


During the build phase we make the war overlay using the following snippet:

					<!-- sequence is important -->
						<!-- empty groupId/artifactId is detected as the current build -->
						<Specification-Title>ESRI GIS Portal ToolKit</Specification-Title>
						<Implementation-Title>ESRI GIS Portal ToolKit uitgebreid door LNV-GCC</Implementation-Title>
						<Implementation-Vendor>ESRI / min. LNV</Implementation-Vendor>

Using the command

mvn install

will give us the georportal.war file with the correct configuration for our development environment as part of the build, so it can be pushed to a Tomcat server using the tomcat-maven-plugin.


This snippet is inside a profile that is activated on the build server resulting in the newest version to be up-and-running within ten or fifteen minutes after the code has been checked into source control.


Join 58 other followers

GISpunt logo


%d bloggers like this: