wiki:Eclipse

Install plutext-server sources

Command line

These instructions apply if you aren't using Eclipse.

Create a directory 'workspace'. cd into it.

svn co  http://dev.plutext.org/svn/plutext-server/trunk/plutext-server plutext-server

cd plutext-server

vi pom.xml; comment out maven-dependency-plugin

mvn install (ignore any compile errors)

vi build.xml (adjust tomcat property)

ant

Eclipse - Assumptions

These instructions are for Eclipse. If you use a different IDE, you will have to follow your nose. Please take note of your steps, and post here.

Prerequisites

  • Download and install Eclipse, and the Web Tools Project (WTP) components.
  • Install the Eclipse subversion plugin
  • Set up Tomcat 5.5 as a server

Instructions

  • File > New "Project .." > SVN > Checkout Projects from SVN
  • Click folder "trunk"; plutext-server; click next
  • You want to check it out as a project configured using the New Project Wizard
  • To use WTP, choose wizard: Web > Dynamic Web Project; click next
  • For Project name, we suggest: plutext-server; click next
  • For web module settings, we want to follow the Maven 2 conventions
  • Content directory : src/main/webapp
  • Java Source directory: src/main/java
  • Click Finish
  • Satisfying classpath dependencies:
  • From a command prompt, go into the plutext-server directory and type:

mvn compile

  • Back in Eclipse, right click on the project: Maven > Enable Dependency Management
  • Right click on the project: Build Path > Configure Build path > Source tab > Add docx4j
  • Right click on the project: J2EE Module Dependencies; add parent-pointer-plugin... from docx4j/lib
  • If necessary (ie you are not using WTP), add servlet-api.jar from your tomcat installation.
  • Eclipse should now be pretty happy (except for the JSP's in src/main/webapp - don't worry about these)