-
Notifications
You must be signed in to change notification settings - Fork 5
Install on Linux or Mac
Justin Lewis edited this page Nov 21, 2022
·
4 revisions
- Java Open JDK 1.8
- PostgreSQL 9.0 or greater
- PostGIS 2.0 or greater
- Orient DB
- Eclipse IDE for Java EE developers. You may not be able to use the latest version of Eclipse because there may not be AspectJ support yet. Check the Eclipse AJDT website first to find out what version of Eclipse you want to download.
- AspectJ Development Tools Eclipse plugin (Must be the correct version for your Eclipse. For example with Eclipse Neon, use version 2.2.4).
- These should come standard with Eclipse: Maven, m2e
Be sure to download a version of Eclipse that is compatible with AJDT and specifies it’s for Jave EE developers.
The AJDT download link will show you what versions of Eclipse are compatible with AJDT: https://www.eclipse.org/ajdt/downloads/index.php
For a tested version of Eclipse Photon download from here: https://www.eclipse.org/downloads/packages/release/photon/r
- Install EGit if it is not already installed. EGit should be included with Eclipse.
- Install Maven Integration for Eclipse - m2e (aka m2eclipse) if it is not already installed. m2e should be included with Eclipse Luna.
- 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/’
- In Eclipse go to ‘window -> Preferences -> Maven -> Discovery -> Open Catalog’.
- Search for buildhelper (by Sonatype) and install.
- 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;
- In Eclipse go to ‘File -> Import -> Git -> Projects From Git -> Clone URI’.
- Set:
- URI : [email protected]: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.
- Configure the database properties by modifying the database properties in server.properties in geoprism-server to:
- user=geoprism
- password=geoprism
- databaseName=geoprism
- 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;
- If you don’t already have it installed you should install Java Open JDK.
Install Maven with the following terminal command:
sudo apt-get install maven
- 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/