...
The software and environment consists of these components:
- Sun (Oracle) Java 7
- PostgreSQL database
- A Java Servlet container, normally Apache Tomcat 7.x
- Java Server Faces 2 (JSF 2)
- X Faces add-on to JSF
- XHTML and Java code written for this project
- Eclipse IDE for Java EE for development/testing
When the application is first run, it detects if the postgresql database exists and creates it if necessary.
...
- Start Eclipse; it will request a folder name. Our practice is to use a folder name that makes it clear this is an Eclipse workspace. For example:
- cdacontentevaluation-workspace
- Edit the Git configuration.
- From the Eclipse menu bar, select View > Preferences.
- In the Preferences dialog left side menu tree, open Team > Git > Configuration.
- In the Configuration dialog, select the User Settings tab (may already be selected).
Edit the key-value pairs to look like this (your name and email, of course):
- Close the Welcome window and open the view: Git Repository Exploring
- The left panel should indicate three options; you will select the option: Cline a Git repository
- A form will popup that you need to complete.
- Use this value for the URI: https://code.imphub.org/scm/cda/cdacontentevaluation.git
- The software will automatically fill in values for Host, Repository path and protocol
- You need to add your authentication information below (User, Password). These are the credentials you have established for www.imphub.org
- Select "Next". On our MacOS systems, this step aborted because of configuration error. See the Notes for MacOS section below.
- A different form will popup that lists the branches of the software. We only have the master. Select Next on this form (not Finish).
- the Git Repository Exploring perspective.
- Click on the Open Perspective icon: which is in the upper right area of the screen.
In the Open Perspective dialog, select Git Repository Exploring and Click OK.
The left panel of the Git Repository Exploring perspective contains the Git Repositories tab. Since this is a new project and has no identified Git Repositories, the following links will appear in the middle of the tab:
Click on "Clone a Git repository" link, which will start the wizard. Fill in the first dialog as shown, using your own imphub login and password, and click Next
- In the Branch Selection dialog, select the master branch and click Next.
- In the Local Destination dialog,
The next form indicates where you will place your git repository.- This is not the same folder as your workspace. Use a folder name that makes this clear; for example: cdacontentevaluation-repository
- Enter the directory where your local Git repository will be placed. This should not be in your workspace.
- CheckOn that form, select the box labeled: Import all existing projects after clone finishes.
- Select Click Finish
- This will complete with errors that you will correct.
- Ralph, I need your help here.
Notes for MacOS
We found some issues when using git on a MacOS system. The article with a solution is found here: http://www.pur-logic.com/2012/04/21/egit-self-signed-certificate/
If you get the error: "cannot open git-upload-pack", you can read the article listed above. The steps to correct the problem are:
...
- http.sslVerify = false
- The wizard will clone the Git repository to your local system and import the CDA Content Evaluation project to Eclipse.
- Switch to the Java EE perspective.
- Update Eclipse with the project maven configuration.
- In the Project Explorer tab, right click on the CDAContentEvaluation line.
- On the context menu, select Maven > Update Project...
- In the Update Maven Project
...
Attach Tomcat to Eclipse
...