Skip to content

Eclipse

Before continuing, please make sure you've built the code using Building the code section.

Choose Eclipse distribution

The Eclipse IDE for Java Developers package is a sufficient base for strongbox project development.

Install ANTLR4 IDE plugin

Follow ANTLR4 Eclipse plugin installation guide Prerequisites and Installation sections from here

  • Download and add as default distribution the antlr-4.x-complete.jar version which matches version.antlr variable from here in Window -> Preferences -> ANTLR 4 -> Tool Window -> Preferences -> ANTLR 4 -> Tool | Add | Apply and Close

Install Groovy-Eclipse M2E Integration

Install from your Eclipse distro update site here. Necessary dependencies will be automatically selected.

Set up Eclipse workspace

Disable Welcome screen

You should already have created an empty workspace - this is the default behavior when you first start Eclipse. Just make sure you untick the "Always show Welcome at start up" checkbox before closing the Welcome screen to see the usual perspective on startup. Welcome X | V Always show Welcome at start up

Import Maven project

  • Choose File -> Import -> Maven -> Existing Maven Projects
  • Point the Root Directory to the strongbox cloned repository.
  • Click Finish button. Import -> Existing Maven Project -> Finish

Workaround m2e connectors

If a popup Discover m2e connectors appears - click Resolve All Later and Finish. Issues with m2e connectors are known and we workaround this through Maven command line build.

Discover m2e connectors | Resolve All Later | Finish

  • In Window -> Preferences -> Maven -> Errors/Warnings -> Plugin execution not covered by lifecycle configuration choose Ignore and hit Apply
  • Click Import icon and browse From preference file to a local saved copy of this file

    Window -> Preferences -> Maven -> Errors/Warnings -> Plugin execution not covered by lifecycle configuration -> Ignore | Apply | Import -> From preference file -> Finish -> Restart

Configure strongbox-storage-nuget-layout-provider project

  • Expand the src/main directory and select antlr4 folder, then right click and pick Build path -> Use as Source Folder

    strongbox-storage-nuget-layout-provider/src/main/antlr4 -> Build Path -> Use as Source Folder

Configure strongbox-aql project

  • Expand the src/main directory and select groovy and twig folders, then right click and pick Build path -> Use as Source Folder strongbox-aql/src/main/groovy & twig ->  Build Path -> Use as Source Folder

  • Right click the project and pick Properties

    • Java Build Path -> Libraries -> Add Library -> Groovy Runtime Libraries. Note that if on right click you pick directly Build path adding the groovy libraries gives an error strongbox-aql -> Properties -> Java Build Path -> Add Library -> Groovy Runtime Libraries
    • Project Natures -> Add -> Groovy Nature strongbox-aql -> Properties -> Project Natures -> Add -> Confirm Project Nature update -> Groovy Nature

Trigger Maven update for strongbox-masterbuild

Select strongbox-masterbuild project, Right click -> Maven -> Update Project

strongbox-masterbuild -> Maven -> Update Project


Last update: 2020-12-07