|
DevelopingInEclipse
How to get Micrite into the Eclipse 3.4 workspace as an eclipse project.
Phase-Implementation IntroductionThe 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.
PrerequisitesInstall the software required for Building Gaixie Micrite and follow the instructions to build Geronimo.
Creating Eclipse ProjectsYou 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 moduleIf 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 modulesWe have no the feature at this time.
Firing up Eclipse
File --> Import --> +General --> Existing Projects into Workspace Select project or projects depending on how you created the project in the Creating Eclipse Projects step.
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
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".
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 InformationIf you plan on contributing code or patches to the project please configure your subversion client : |