My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
DevelopingInEclipse  
How to get Micrite into the Eclipse 3.4 workspace as an eclipse project.
Phase-Implementation
Updated Aug 19, 2009 by bitorb@gmail.com

Introduction

The following instructions will enable you to get Micrite into the Eclipse 3.4 workspace as an eclipse project. You will be able use eclipse to make code changes and run Unit tests. For purposes of this discussion the development OS is Windows. Please adjust these instructions for your environment.



Prerequisites

Install the software required for Building Gaixie Micrite and follow the instructions to build Geronimo.



Creating Eclipse Projects

You could import all subprojects in the workspace. But a more efficient way is to import only the modules that you want to work on.

Working with a single module

If you are planning to modify a single micrite module, you can import only that module in the workspace by running the following commands:

mvn install
cd modules\a_module
mvn -o eclipse:eclipse

Working with multiple modules

We have no the feature at this time.



Firing up Eclipse

  • Import the project(s) to eclipse workspace using:
  • File --> Import --> +General --> Existing Projects into Workspace
Select project or projects depending on how you created the project in the Creating Eclipse Projects step.
  • Set the Maven Classpath variable M2_REPO to tell Eclipse where the Maven repository is by clicking the "New" button in
  • Window --> Preferences --> Java --> Build Path --> Classpath Variables
Enter M2_REPO and set it to your maven2 repository directory. On linux this directory is usually located at
~/.m2/repository
and on windows its usually at
"%USERPROFILE%\.m2\repository"

Code Formatting

  • Configure eclipse to not use tabs by doing the following:
  • Window --> Preferences --> Java --> Code Style --> Formatter --> Java Conventions [built-in]

Click on "Edit". Under Indentation select Tab policy as "space only". Enter a new name for this profile and click "OK".

  • Create new java file(s) with comments using:
  •  Window --> Preferences --> Java --> Code Style --> Code Templates --> Comments --> Files
Click on "Edit". Replace default content with following lines:
 /* ===========================================================
 * $$Id$$
 * This file is part of Micrite
 * ===========================================================
 *
 * (C) Copyright 2009, by Gaixie.org and Contributors.
 * 
 * Project Info:  http://micrite.gaixie.org/
 *
 * Micrite is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Micrite is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Micrite.  If not, see <http://www.gnu.org/licenses/>.
 *
 */



Other Useful Information

If you plan on contributing code or patches to the project please configure your subversion client :


Sign in to add a comment
Powered by Google Project Hosting