Export to GitHub

struts2-conversation - EclipseAndMavenGuide.wiki


This setup guide includes directions for installing Eclipse and adding the Maven and SVN plugins and for checking out and running an example application.

Install Eclipse

Download Eclipse and install it. [download page]

Install M2E Maven Plugin

  1. Open Eclipse
  2. Go to Help->Install New Software...
  3. Paste this URL into the field and click "Add": http://download.eclipse.org/technology/m2e/releases/
  4. Follow the directions and finish installing the plugin.
  5. Restart Eclipse.

Install SVN Plugin

  1. Open Eclipse
  2. Go to Help->Install New Software...
  3. Paste this URL into the field and click "Add": http://subclipse.tigris.org/update_1.8.x
  4. Restart Eclipse.

Checkout Example Project and Run It

  1. Go to Window->Open Perspective->Other...
  2. Select "SVN Repository Exploring"
  3. You should now see the "SVN Repositories" sub-window on the left.
  4. Right-click in the white area of the SVN Repositories view.
  5. Select New->Repository Location
  6. Enter the following as the URL: http://struts2-conversation.googlecode.com/svn/support/examples
  7. Expand the new repository directory.
  8. You should see folders for each of the example projects.
  9. Right click on one of the projects and select "Checkout..."
  10. Select "Check out as a project in the workspace" and click "Finish".
  11. Click on "Java" or "JEE" in the top right-hand corner of Eclipse to switch back to a Java perspective.
  12. You should see the project that you just checkout out in the Package Explorer on the left.
  13. Right click on the project and select Configure->Convert to Maven Project
  14. When the conversion has finished, right click on the project again and select Run as->Maven Build
  15. Type "jetty:run" in the "Goals" field and then click the "Run" button. Go to this URL to use the app: http://localhost:8080/simple-example/registration/begin.action

Go to this URL to browse the app configuration: http://localhost:8080/simple-example/conversation-config-browser/index.action