-
Notifications
You must be signed in to change notification settings - Fork 24
Setup Harvester in an IDE
zguo edited this page Aug 31, 2017
·
1 revision
Setup geoportal server harvester project within an IDE
In Progress
- JRE or JDK 8.x
- NetBeans
- A Java Application Server such as Tomcat 8.x
- Clone the github repository to a local destination
- Go to https://github.com/Esri/geoportal-server-harvester
- Copy github repository url (e.g. https://github.com/Esri/geoportal-server-harvester.git)
- Within NetBeans, go to menu Team > Git > Clone
- Paste the URL to the Repository URL field
- Enter github user and password
- Set the destination folder for the local repository
- Select which remote branch to be cloned > Next
- Click on "Finish" to clone the repository
- Build the project
- Right click on the "pom.xml" file > Run Maven
- Set "Goals" to "clean install"
- Click "Ok" to compile and build the harvester
- Add Apache Tomcat to the list of servers to be used if not already having one
- Go to Menu "Tools" > Servers > "Add Server..."
- Select "Apache Tomcat or TomEE"
- Choose the Tomcat Server instance location (e.g. C:\Program Files\Apache Software Foundation\Tomcat 8.5), enter username and password
- Click on "Finish" to add the server
- To update/debug a particular module
- Open "Modules" > Select a module (e.g. "Esri :: Geoportal Server :: Harvester :: Application :: War")
- Double click on the module to add the module as a new node
- Right click on the module > properties > verify the parameters are correct (e.g. value for "Run" is pointing to the Tomcat Server) > Ok
- Open a source file and make necessary edits/set breakpoints for debugging
- Right click on the module > Debug to run through the debug process
-
Note:
- A description for each module is available in the description element of the module pom.xml.
- Recompile the entire project
- After all the edits are complete, recompile the entire project following steps in "Build the project" section above
- Retrieve the output (e.g. NetBeansProjects\geoportal-server-harvester\geoportal-application\geoportal-harvester-war\target\geoportal-harvester-war-2.5.1-SNAPSHOT.war) for distribution/deployment/testing.