Eclipse
- Laura McCord
- Eric Dalquist
Eclipse Setup
A demonstration of installing and configuring Eclipse 3.7 for working with most Jasig projects.
Many progress bars and wait times are cut out of the video.
Detailed Instructions
These instructions correspond to the times and subtitles in the demo video.
Download Eclipse IDE for Java EE Developers from: http://www.eclipse.org/downloads/
Select the location to store your projects
- Go to the Help > Eclipse Market Place... menu
- Search for Subversion
- Scroll to the Subclipse entry and click on the Install button
- Agree to the license, click through the following dialogs and click the Restart Now button when it appears.
If using Ubuntu, or likely other flavors of Linux, the libsvn-java library needs to be installed. If you are not using Linux please ignore this step.
- Download the Spring Tool Suite Installation Instructions
- Find the Installing from the Release Update Site section
- Find the URL for the bookmarks.xml file for Eclipse 3.7 (http://dist.springsource.com/release/TOOLS/composite/e3.7/bookmarks.xml)
- Save this file to your computer
- In Eclipse go to the Window > Preferences > Install/Update > Available Software" options and click on the *Import... button.
- Select the bookmarks.xml file you just downloaded
- Go to the Help > Install New Software... menu
- Select the SpringSource Update Site for Eclipse 3.7 option from the Work with: drop down box
- Click the Select All button and then the Next > button
- Agree to the license, click through the following dialogs and click the Restart Now button when it appears.
- Go to the M2E Project Site and follow the Download link
- Copy the update site URL (http://download.eclipse.org/technology/m2e/releases)
- In Eclipse go to the Help > Install New Software... menu
- Paste the update site URL into the Work with: drop down box and press enter.
- Click the Select All button and then the Next > button
- Agree to the license, click through the following dialogs and click the Restart Now button when it appears.
- Go to the Sysdeo Tomcat Plugin Site
- Scroll to the Download section and download the latest release.
- Extract the downloaded file and move the resulting com.sysdeo.eclipse.tomcat_3.3.0 folder into the eclipse/plugins directory.
- Manually restart eclipse
Customize your Eclipse workspace UI according to your preferences.
These instructions were last updated on 7/22/2011
uPortal Project Setup
A demonstration of checking out and configuring uPortal 4 in Eclipse. This video assumes the setup in the Eclipse Setup video above was followed.
Many progress bars and wait times are cut out of the video.
Detailed Instructions
These instructions correspond to the times and subtitles in the demo video.
.
- Switch to the SVN Repository Exploring perspective
- Navigate to the uPortal/trunk folder in the Jasig SVN repository (https://source.jasig.org/)
- Right click on the trunk folder and select Checkout... from the menu
- Use the New Project Wizard option on the Checkout from SVN dialog and click the Finish button
- Under the General folder select Project and click the Next > button
- Name the project uPortal_trunk and click Next > then Finish
- Right Click on the uPortal_trunk project and select the Assign working sets... option.
- Click on the New... button
- Select the Java working set type
- Name the working set uPortal_trunk and click the Finish button
NOTE: See the Switch to Working Sets View section of the uPortal 3.2 video
- Right Click on the uPortal_trunk project and select the Configure > Convert to Maven Project option.
- Right Click on the uPortal_trunk project and select the Import... option.
- Expand the Maven folder and select the Existing Maven Projects option, then click Next >
- Click the Deselect All button since uPortal creates a lot of little Maven overlay projects that aren't useful to import.
- Select the uportal-war and uportal-search-api projects
- Expand the Advanced section and select the Name template: artifactId-TRUNK, then click Next >
- Click Finish. You can ignore the warnings about missing Maven plugin connectors.
- You will be prompted to install the m2e connector for build-helper-maven-plugin
- Click the Finish button on this dialog, accept the license and OK on the following prompt.
- Restart Eclipse when prompted
- In Eclipse go to the Help > Install New Software... menu
- Paste the URL https://github.com/hwellmann/m2eclipse-extras/raw/master/p2/ into the Work with: drop down box and press enter.
- Expand the Omadac m2e Extensions option
- Select the m2e Connector for JAXB
- Click the Next > button until you get to the license, accept the license and click Finish
- Restart Eclipse when prompted
- Right click on the uportal-search-api project select the Maven > Update Project Configuration... menu option and click OK on the following prompt
- After the Eclipse finishes updating go the Project > Clean menu.
- Select the Clean projects selected below box and then select only the uportal-search-api project and click OK
- When Eclipse finishes updating you should see an additional target/generated-sources/xjc source folder in the project, this folder contains Java source files generated by the XJC tool from the XML schemas in the project.
- Right click on the uportal-war project select the Maven > Update Project Configuration... menu option and click OK on the following prompt
- After the Eclipse finishes updating go the Project > Clean menu.
- Select the Clean projects selected below box and then select only the uportal-war project and click OK
- When Eclipse finishes updating you should see an additional target/generated-sources/xjc source folder in the project, this folder contains Java source files generated by the XJC tool from the XML schemas in the project.
- uPortal 4 uses the JPA2 MetaModel for type-safe query building. The maven-processor-plugin is used to generate Java source files for this meta model but there is not yet support for the plugin in m2e. The following is a work-around for getting the project working correctly in Eclipse.
- The video shows downloading and setting up Maven for this step, if you do not have Maven installed it is required to work with uPortal.
- Open a command line window and navigate to the uPortal_trunk/uportal-war project directory
- Run the command "mvn clean compile" this will trigger generation of the uPortal JPA2 Meta Model
- In Eclipse right click on the uportal-war project and select Refresh from the menu
- When Eclipse finishes refreshing the project a target/generated-sources/annotations directory should be visisble.
These instructions were last updated on 7/22/2011
Add Feedback content box here.....