Setting Up The Argeo Development Environment
From ArgeoWiki
Contents |
[edit]
Java Installation
- Supported version: 1.5
[edit]
Eclipse Installation
- Supported version: 3.3
- Prefered package "Eclipse IDE for Java EE Developers"
- At first launch, please select a workspace directory whose path is all small caps and no space
[edit]
Eclipse Plugins
[edit]
M2Eclipse (Maven)
- Within Eclipse, go to Help>Software Update>Find and install>Feature Updates>Search for new features
- New remote site : http://m2eclipse.sonatype.org/update/
- Unselect "Subclipse Integration for Maven (Optional) (0.9.2.20080413-2321)" in the following features list.
[edit]
Subclipse (Subversion)
- Within Eclipse, go to Help>Software Update>Find and install>Feature Updates>Search for new features
- New remote site : http://subclipse.tigris.org/update_1.2.x
- Unselect "Buckminster - Subclipse support (Incubation)" from the features' list
[edit]
Maven Configuration
For the following step, you'll need to identify your user directory (USER_DIR). It is usually located:
- under Windows: USER_DIR = C:\Documents and Settings\<your user name>
- under Linux/UNIX: USER_DIR = /home/<your user name>
- under MacOS X: USER_DIR = /Users/<your user name>
You then need to :
- create a directory USER_DIR/.m2
- create a settings.xml file with the following content (update the local repository location)
<settings xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>[the location where Maven should locally download files]</localRepository>
<mirrors>
<mirror>
<id>argeo.org</id>
<name>Argeo Maven Repository and Proxy</name>
<url>http://www.argeo.org/maven/proxy</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
Note: under Windows you may have to create the .m2 directory via the command line since the Windows Explorer may not accept this name:
C:\Documents and Settings\user>mkdir .m2
[edit]
Checkout Public Argeo Projects
In order to checkout Argeo projects, you will need to :
- add a new SVN repository with URL https://www.argeo.org/svn (ignore the warning regarding the certificate's validity)
- browse and checkout, one by one, within slc > trunk : org.argeo.slc, org.argeo.slc.core, org.argeo.slc.example, org.argeo.slc.server, org.argeo.slc.webapp
