Eclipse IDE Setup

Welcome to the setup IDE instructions for the Gentics Portlet Suite.

Here you can find all necessary information on how to setup your development environment and what else you need to start developing on the portlets.


Software Requirements

First you should be familiar and install following software tools:

  • Java JDK 1.6
  • Eclipse IDE for Java EE
    • Checkstyle Plugin (required)
    • Maven 3 WTP Plugin (recommended)
    • EGit Plugin (optional)
  • Git
    • Git Bash for Windows
    • if you prefer to use the traditional commend line git working
  • Maven 3 (if you prefer the command line instead of the Eclipse plugin)

-> The Eclipse Plugins can be easily installed through the built in Eclipse Marketplace.

-> After installing that development tools you are ready to go get the code base

Create a fork of the Gentics Portlet Suite repository

  1. Ask for access to the github project and create your own fork of the Portlet Suite repository. The original repository has the following URL:

    https://github.com/gentics/portletsuite/
    

    Please follow the steps in the guide on github to create a fork of that. Important thing is to configure the remotes to the dev branch of the original repository, in order to be able to pull upstream changes from there later.

  2. After that you can clone your fork of the project:

    git clone https://github.com/{username}/portletsuite.git 
    

    Now you got your own fork of the repository on your local machine.

  3. Configure remotes

    In order to get all updates from the original Portlet Suite repository, add an upstream:

    git remote add upstream https://github.com/gentics/portletsuite/
    

    Now you can get the newest changes from the original Portlet Suite repository by executing:

    # Fetches any new changes from the original repo
    git fetch upstream
    
    # Merges any changes fetched into your working files
    git merge upstream/dev
    

    -> To get the newest changes from the original dev branch is recommended before you start to implement new stuff.

-> If you have problems to check out the repository please contact one person of the project team.

Setup Maven project in Eclipse

After that you can import the projects in an Eclipse workspace. Right click on the project or package explorer and in the context menu: import -> existing Maven projects

import projects

After that you should have those projects in your workspace.

Setup Checkstyle File

In order to have some general style guideline we use a checkstyle file to have a standardized code. Here you can find the checkstyle.xml.

Please download the file and import it to your Eclipse Checkstyle settings. Go to Preferences - Checkstyle and create a new external configuration.

import projects

After importing the new configuration select it as default on the right side.

-> now you are ready to go :) please check the contribution workflow