...
- Install Eclipse following the guide in Installing Eclipse.
- Install Maven 2.0.10 or above.
- Install Subversion.
- Install the Maven Plugin for Eclipse. You can install this plugin from Maven Integration for Eclipse update site.
Creating Eclipse Projects
You could import all the geronimo projects or subprojects in the workspace. But a more efficient way is to import only the modules that you want to work on.
Working with
...
multiple modules
You are advised to import all the modules the first time you work with Geronimo builds in Eclipse
If you are planning to modify a single geronimo module, you can import only that module in the workspace by running the following commands:
No Format |
---|
cd modules\a_module or cd maven-plugins\a_plugin
mvn -o eclipse:eclipse
|
Working with multiple modules
It is advised that the first time users import all the modules.
Generate the Eclipse projects for geronimo sub-projects by invoking the following command from the Geronimo top directory:
No Format |
---|
mvn -o eclipse:eclipse |
...
It is possible to import only a few modules in the workspace by running the above command from each of the modules directory. In this case the changes made in one module will not be visible to other modules without rebuilding the modified module with mvn.
Info | ||
---|---|---|
| ||
It is possible edit |
Firing up Eclipse
...
Working with a single module
If you are planning to modify a single geronimo module, you can import only that module in the workspace by running the following commands:
No Format |
---|
|
...
cd modules\a_module or cd maven-plugins\a_plugin
mvn -o eclipse:eclipse
|
Firing up Eclipse
After you create Eclipse projects for Geronimo, it is time you import these projects to the Eclipse workspace.
...
- Click on File > Import> General > Existing Projects into Workspace.
- Select project or projects depending on how you created the project in the #Creating Eclipse Projects step.
...
- Click Window > Preferences > Java > Build Path > Classpath Variables, and click the New button.
- Enter
M2_REPO
and set it to your maven2 repository directory. On linux this directory is usually located at
and on windows its usually atNo Format ~/.m2/repository
No Format "%USERPROFILE%\.m2\repository"
...
Note: If you are working on a builder module,
...
for example. geronimo-tomcat6-builder, you must add xmlbeans classes to the build path.
- Right click on the builder project and
...
- select Build Path > Configure Build Path > Java Build PAth > Add Class Folder.
- Check target/clover/classes folder from the selection.
- To prevent Eclipse from copying the .svn directories to the output folder of projects,
...
No Format |
---|
Window --> Preferences --> Java --> Compiler --> Building --> Output folder
|
...
- click Window > Preferences > Java > Compiler > Building > Output folder, and append
.svn
to the
...
- *Filtered Resources
...
- field.
...
Building Geronimo source code in Eclipse
You can build each Geronimo module by right clicking on the project, and selecting mvn options.
Info | ||
---|---|---|
|
...
|
...
|
...
|
...
|
...
|
...
|
...
No Format |
---|
Window --> Preferences --> Java --> Code Style --> Formatter --> Import
|
|
...
|
No Format |
---|
Window --> Preferences --> Java --> Code Style --> Code Templates --> Import
|
|
...
|