Wiki
Version 1 (Ahmadi Hadi, May 25, 2011 10:52)
1 | 1 | Ahmadi Hadi | h1. Development Environment |
---|---|---|---|
2 | 1 | Ahmadi Hadi | |
3 | 1 | Ahmadi Hadi | This page serves as a guide for developers to set up the dev env required for participating in AgroBank RIB project. It's maintained as a wiki so that everyone be able to improve it by contributing his/her experiences throughout the process of configuring and building the project. |
4 | 1 | Ahmadi Hadi | |
5 | 1 | Ahmadi Hadi | h2. Source Code Repository |
6 | 1 | Ahmadi Hadi | |
7 | 1 | Ahmadi Hadi | https://hub.penril.net/hg/agrobank/agro_rib/ (A _Mercurial_ Repository) |
8 | 1 | Ahmadi Hadi | |
9 | 1 | Ahmadi Hadi | h2. Build Tools |
10 | 1 | Ahmadi Hadi | |
11 | 1 | Ahmadi Hadi | The project definition, its dependencies and other build configs are defined in a file in its root folder named *@pom.xml@*. This file is used by *_Apache Maven_* (http://maven.apache.org/) to build the project. Apache Maven is de facto Java buid management tools that decouple your project structure from IDEs. On the other hand, it's so popular that all Java IDEs have developed plugins to integrate and interpret Maven projects into their expected structures. Another benefit of build tools like Maven is that the project can be build automatically using Continuous Integration servers, like _Jenkins/Hudson_ in our case. |
12 | 1 | Ahmadi Hadi | |
13 | 1 | Ahmadi Hadi | In order to run @mvn@ (Maven command) outside your Eclipse environment you need to install Maven binaries from the follow link: http://maven.apache.org/download.html#Maven_2.2.1 |
14 | 1 | Ahmadi Hadi | |
15 | 1 | Ahmadi Hadi | Make sure you select *Maven 2.2.1* as this is the version used in this project. |
16 | 1 | Ahmadi Hadi | |
17 | 1 | Ahmadi Hadi | h2. Eclipse Plugin for Maven2 |
18 | 1 | Ahmadi Hadi | |
19 | 1 | Ahmadi Hadi | *_m2eclipse_* is the recommended plugin to import Maven projects into Eclipse workspace. You can find the installation guide on http://m2eclipse.sonatype.org/installing-m2eclipse.html. Make sure you install both: |
20 | 1 | Ahmadi Hadi | * _Maven Integration for Eclipse (Required)_ from *m2eclipse Core* |
21 | 1 | Ahmadi Hadi | * _Maven Integration for WTP_ from *m2eclipse Extras* |
22 | 1 | Ahmadi Hadi |