Thursday, April 22, 2010

Eclipse and Tomcat and Maven

The optimal setup of a maven / eclipse / tomcat web project is setup as follows:
  • [Download and install java 1.6]
  • [Download and install Eclipse Galileo JEE]
  • [Download and install Tomcat 6.0.x]
  • Download SysDeo (eclipse-)plugin from http://www.eclipsetotale.com/tomcatPlugin.html
  • Extract the zip to ECLIPSE_HOME/plugins
  • [Re-]start eclipse with -clean option
  • Set Tomcat version and home in Preferences - Tomcat
  • Make sure Eclipse default JRE is a JDK
  • Set your Eclipse project to be a Tomcat project: Project Properties - Tomcat
  • Set a context path
  • Set the Subdirectory to use as web app root to /src/main/webapp
  • Activate DevLoader
  • Check all jars, then uncheck test classes and servlet-api.jar
  • Copy DevLoader.zip from ECLIPSE_HOME/plugins/SYSDEO to TOMCAT_HOME/lib and rename it to .jar

No comments:

Post a Comment