...
- Create a root directory for the download. For this example, we will use a directory called DayTrader.
- Create subdirectories branches/2.1.3 under the DayTrader directory
- cd to DayTrader/branches/2.1.3
- Issue the following subversion command:
svn checkout https://svn.apache.org/repos/asf/geronimo/daytrader/branches/2.1.3 branches/2.1.3https://svn.apache.org/repos/asf/geronimo/daytrader/branches/2.1.3
Build DayTrader
You must have maven installed in order to build DayTrader. Maven can be downloaded from http://maven.apache.org/download.html. Unzip the file to a directory and run mvn.bat|.sh in the bin subdirectory to install. Add the bin subdirectory to you path.
Maven needs a repository. Typically it is at the following:
- Windows - C:\Documents and Settings\<userid>\.m2\repository
- Linux/unix - ~/.m2/repository
From the DayTrader/branches/2.1.3 directory, type "mvn clean install" to build the project.
Setting up Eclipse
First install eclipse by going to http:/www.eclipse.org and downloading a version of it. These instructions assume version 3.5. Unzip the downloaded file into a directory. You can start eclipse by running eclipse.exe in the eclipse directory.
Next install subclipse, the Subversion Eclipse Plugin:
- In Eclipse, go to Help -> Install New software
- Click on Add button - Enter Subclipse for Name and http://subclipse.tigris.org/update_1.6.x for location
- Select the Subclipse Plugin and click Next -> Next
- Read and accept the license and click Finish
Generate eclipse files for the DayTrader project. From the DayTrader/branches/2.1.3 directory, type "mvn eclipse:eclipse"
Set the M2_REPO classpath variable in Eclipse:
- Go to Window -> Preferences -> Java -> Build Path -> Classpath Variables
- Add a new variable called M2_REPO, set to the maven repository directory mentioned above.
Import DayTrader projects into Eclipse.
- From Eclipse, Click on File -> Import...
- Under the General folder, select Existing Projects into Workspace and click on Next.
- Enter the root directory of DayTrader/branches/2.1.3
- Select all projects and click Finish
Apply the DayTrader Patch
TBD
Run DayTrader on Geronimo
Install and start the Geronimo server
From the Geronimo web console: