[Jsdsi-devel] Installing Maven, Eclipse and JSDSI on Windows 2000
Status: Pre-Alpha
Brought to you by:
sajma
|
From: Sean R. <sra...@ae...> - 2004-02-28 20:24:04
|
Here's a step by step guide that I just did to get Maven working on Windows 2000 (a box that has a correctly installed JDK). 1. Download maven-1.0-rc1.zip (http://maven.apache.org/start/download.html) 2. Extract the downloaded zip to your target directory, e.g. C:\java\ - resulting in c:\java\maven-1.0-rc1 3. set MAVEN_HOME to 'C:\java\maven-1.0-rc1' via the 'Control Panel\System\Advanced\Environment Variables\User Variables' 4. Add %MAVEN_HOME%\bin to 'Path' environment variable similar to above 5. Open a console and run 'set' to check that the environment variables are set correctly. (An easy way to open a command prompt is 'Start\Run...', enter 'command' and press 'ok') 6. From the command prompt run 'install_repo.bat %HOMEPATH%\.maven\repository' - On some boxes the environment variable is HOME, you can check this by running the 'set' command and looking for which entry points to 'C:\Documents and Settings\YOURUSERNAME' 7. At the command prompt run 'maven -g' to check that Maven is running - all the maven goals are listed... 8. Download and install Eclipse (Latest stable version 3 build is currently 3.0-M7) 9. Run Eclipse 10. Set-up jsdsi cvs repository in Eclipse for browsing (make sure to use extssh or ext if you will want to write to the repository later) 11. In the CVS repository browser select the HEAD branch of cvsroot/jsdsi 12. Under the above, select the jsdsi directory and right-click 13. Select 'Check Out As...' 14. Make sure 'Check out as a project configured using the New Project Wizard' is selected 15. Press Finish 16. Select 'Java' and 'Java Project' and press 'Next' 17. Enter project name 'jsdsi' in the text box and press 'Next' (optionally enter an alternate project location in the 'Project Contents' information area) 18. When asked to switch Perspective select yes 19. Using a text editor, e.g. Notepad create a text file called 'build.properties' in your home directory ('C:\Documents and Settings\YOURUSERNAME'). The contents of the file is a single entry: maven.eclipse.workspace=ECLIPSE_WORKSPACE_PATH Where ECLIPSE_WORKSPACE_PATH should be replaced by the path to your Eclipse Workspace (the default being 'ECLIPSE_HOME\workspace') As an example: maven.eclipse.workspace=C:\programs\eclipse-3.0-M7\workspace 19. Save your 'build.properties' file. 20. Go back to the command prompt 21. 'cd' to the location where you checked-out jsdsi to during step 17 - The default location is 'ECLIPSE_HOME\workspace\jsdsi', where ECLIPSE_HOME is the location of your Eclipse installation 22. Within the jsdsi directory run 'maven eclipse:add-maven-repo' - This adds a variable to Eclipse so it knows where your Local Maven Repository is. 23. Next run 'maven eclipse' - This creates the correct eclipse '.project' and '.classpath' files. 24. In eclipse, 'refresh' your jsdsi project. 25. All should now be correctly set-up... Hope this help, Sean (This is something to move to the site I should guess - ideally with some screenshots) -- Dr. Sean Radford, MBBS, MSc sra...@ae... http://www.aegeus-technology.com |