This document explains how to get up and running with Struts Action Framework 1.3.x using the Eclipse IDE.
While not required, it's a good idea to use Eclipse with the WebTools plugins. This provides the best extensions for working with Java Web Applications with Eclipse. You can find the latest download from this page: http://download.eclipse.org/webtools/downloads/
- Eclipse (with or without WebTools) (http://www.eclipse.org/)
- Subversion client (http://subversion.tigris.org/)
- Maven 2 (http://maven.apache.org/download.html)
- Open a command shell
- Windows (Start -> Run, then type 'cmd' without the quotes)
- OS/X (Open the terminal)
- Linux (if I have to explain it, switch back to Windows)
Make sure you can properly execute both Maven and Subversion. (your output may differ from this)
2. Find a home for the files that you are about to get from Apache Subversion. I typically use /home/jmitchell/svn/struts.
3. Check out the source code
Note that by adding "struts" to the end of that url, you'll have a directory called 'struts' and not 'current', which would have happened if you had not specified it.
4. Change directories to where Action 1.3.x lives
5. Generate the eclipse configuration files (.project and .classpath)
6. Create the projects that make up Struts Action Framework 1.3.x
- Open Eclipse
- Choose File -> Import
- Under General, choose 'Existing Projects into Workspace'
- Choose Next
- For 'Select root directory', click the browse button (choose the same directory your console is currently in)
- As Eclipse reads in the projects recursively, you'll see them appear in the list under projects
- Click finish