While GeoPrism is primarily used in production on Linux servers setup on a Mac for development purposes works well.
Edit me
Tip: For more reliable compatibility use Eclipse IDE (Luna).
Configure Eclipse
Install EGit
- Install EGit if it is not already installed. EGit should be included with Eclipse Luna.
Install m2e
- Install Maven Integration for Eclipse - m2e (aka m2eclipse) if it is not already installed. m2e should be included with Eclipse Luna.
Install AJDT
- Install AJDT if it is not already installed.
- In Eclipse go to ‘help -> Install New Software’
- Enter this URL in the input field ‘http://dist.springsource.org/release/AJDT/configurator/’
Install M2E connector, buildhelper
- In Eclipse go to ‘window -> Preferences -> Maven -> Discovery -> Open Catalog’.
- Search for buildhelper (by Sonatype) and install.
Install And Setup The Database
- Install PostgreSQL 9.0 + using whatever method you prefer.
- After installing PostgreSQL create a database called “template-postgis”.
- Spatially enable the template-postgis database by installing PostGIS with the SQL command:
CREATE EXTENSION postgis;
Download and Load GeoPrism Into Eclipse
1. Load GeoPrism Into Eclipse
- In Eclipse go to ‘File -> Import -> Git -> Projects From Git -> Clone URI’.
- Set:
- URI : git@github.com:terraframe/geoprism.git
- Host : github.com
- Repository path : terraframe/geoprism.git
- User : git
- Click “Next”. Follow the wizard, and when asked to select projects to import select the following (at a minimum):
- dev
- master
- Click to download the repository
- Select “Import existing projects”
- Select all of the projects to import and make sure that “Search for nested projects” is checked.
2. Configure GeoPrism
- Configure the database properties by modifying the database properties in server.properties in geoprism-server to:
- user=geoprism
- password=geoprism
- databaseName=geoprism
3. Create And Configure The GeoPrism Database
- Create a new database called ‘geoprism’ using template-postgis as a template to ensure PostGIS is included.
- If you don’t have a template-postgis database you can enable postgis by running the SQL command:
CREATE EXTENSION postgis;
Install Oracle Java 8
- If you don’t already have it installed you should install the Oracle version of Java 8. The Oracle version is faster than the open source competitors.
Install The Build Tools
1. Install Maven
- Install Maven in the appropriate way for your OS version.
1. Configure A Basic Maven Build
- Create a new Maven build defining the following properties:
- goals : clean install -P geoprism-cargo-run-debug
- params : configuration.dir
- Define the base directory as ${workspace_loc:/geoprism}
- Add a new parameter:
- Name: configuration.dir
- Value: ${workspace_loc:/geoprism-platform}/Customer_projects/
2. Install Ansible (optional)
- Follow the Ansible instructions: here