Prerequisites

You should have the following software installed:

Overview

  1. Install Eclipse 3.0.1
  2. Install Subclipse Plugin (0.9.24+)
    • In Eclipse under Help menu, Software Updates->Find and Install->Search for new features to install

    • Add remote site name Subclipse with this URL: http://subclipse.tigris.org/update

    • Follow steps in wizard
  3. Install Maven
    • make sure maven.bat is in PATH
  4. Import Team Project Set xml file (see contents below)
    • see contents of XML listed inline in this Wiki
    • Team Project Set functionality in Eclipse is under File->Import->Team Project Set

    • importing will take some time as all code is pulled down from the repository
  5. Define MAVEN_REPO classpath variable in Eclipse
    • Setting is in Preferences under Java->Build Path->Classpath Variables

    • MAVEN_REPO on windows may default to something like C:/Documents and Settings/Administrator/.maven/repository
  6. Run "maven eclipse" in each project directory to download required libs and create .classpath and .project files for project
  7. Refresh projects in Eclipse to read new config files generated by Maven

Team Project Set

<?xml version="1.0" encoding="UTF-8"?>
<psf version="2.0">
        <provider id="org.tigris.subversion.subclipse.core.svnnature">
                <project reference="0.9.3,http://svn.apache.org/repos/asf/struts/core/trunk,struts-core"/>
                <project reference="0.9.3,http://svn.apache.org/repos/asf/struts/el/trunk,struts-el"/>
                <project reference="0.9.3,http://svn.apache.org/repos/asf/struts/sandbox/trunk/struts-shale,struts-shale"/>
        </provider>
</psf>

Notes

StrutsBuildingFromSourceWithEclipseMavenSubversion (last edited 2009-09-20 23:12:33 by localhost)