Setting up the development environment

GateIn is developed using the Apache Maven lifecycle process and this guarantees that the project can be used with any standard development environment.

In this recipe, we will learn how to import the GateIn project in Eclipse IDE (you can use any other IDE that supports Maven). You will also see how to install JBoss tools in Eclipse to add support for developing standard portlets and all Java EE components provided by JBoss.

Getting ready

  1. Download Eclipse IDE for Java EE Developers at http://www.eclipse.org/downloads/.
  2. Install Eclipse on your machine, launching the executable and following the installation instructions.

How to do it...

Set up your development environment following these steps:

  1. Launch Eclipse and create a new workspace dedicated to GateIn.
  2. Click on Help | Eclipse Marketplace.
  3. Search jboss tools and click on the Go button.
  4. Locate the JBoss Tools version required for your specific Eclipse version and click on the Install button.
    How to do it...
  5. In the Confirm Selected Features window, select all the items and click on the Next button.
    How to do it...
  6. In the Install Details window, click on the Next button.
    How to do it...
  7. In the Review Licenses window, read and accept the terms of the license agreements and click on the Finish button.
  8. Wait for the installation process of JBoss tools to complete. Once the installation is finished, restart Eclipse.
  9. After the restart, you should see the overview of what you can do with JBoss tools with a similar tab in your Eclipse environment:
    How to do it...
  10. Right-click on the Package Explorer tab and select Import.
  11. Browse the Maven category and select Existing Maven Projects and press the Next button.
  12. Insert as Root Directory the GateIn source root folder that you have created in the previous recipe.
    How to do it...
  13. Click on the Next button and then click on Finish.
  14. Be sure at the end of the import process to update the project configuration of all the Maven modules— in the Package Explorer window select all the modules, right-click, then select Maven | Update Project Configuration and finally click on OK.

How it works...

The source code of GateIn is based on Maven, but by default, Eclipse IDE does not support it. The JBoss tools package includes the m2eclipse plugin that allows managing Maven projects inside Eclipse IDE. So in order to develop your own solutions make sure to use an IDE that supports Maven.

We have configured Eclipse to manage JBoss middleware and Maven projects and then we have imported the GateIn source code to let you contribute to the product or create your own customizations.

The following are all the example modules available in the GateIn source code:

  • GateIn Portal Sample
    • GateIn Portal Sample Extension
    • Sample Configuration
    • Sample Ear
    • Sample War
    • Sample Jar
    • GateIn Portal Sample Portal
    • GateIn Portal examples—Portlets
    • API Sample Portlet
    • JSF Sample Portlet
    • JSP Sample Portlet
    • Standard Sample Portlet
    • Struts Sample Portlet
    • Resource Serving Sample Portlet
    • GateIn Skin Sample

See also

  • The Building and installing GateIn from the source code recipe
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.144.229