-
Notifications
You must be signed in to change notification settings - Fork 10
Plugin Development
-
Clone project from git
git clone [email protected]:OpenLiberty/liberty-tools-eclipse.git
-
Start up Eclipse (create a new directory to use as the workspace - not the cloned repo above^)
-
Import the projects (multiple ways to do this):
-
Using Git
-
Click on Window > Show View > Other...
-
Search "git" and click on
Git Repositories
-
From the
Git Repositories
view, right click >Add a Git Repository
-
Add the
liberty-tools-eclipse
directory that you cloned in step 1. -
Right click on the new repo and
Import Projects
-
-
OR
-
File->Import -> General -> Existing Projects into Workspace
-
In the "Select root directory" type the
liberty-tools-eclipse
directory that you cloned in step 1 and hit "Browse". -
Click to select the option "Search for nested projects".
-
Click "Finish".
-
-
Setup the target platform information (versions, addons and such):
-
Go to
releng/target-platform
and opentarget-platform.target
-
Click
Set as Active Target Platform
in the top Right
-
-
Launch the plugin (this will open a "child" Eclipse window with the plugin installed)
NOTE: At the moment, we either need to launch the child eclipse app with
MAVEN_HOME
/GRADLE_HOME
configured OR make sure the Maven/Gradle wrapper (mvnw/gradlew) is included in whatever test app we import.-
Under
bundles
right click onliberty
-
(Wrapper in test app) Run As > Eclipse Application
-
(Setting MAVEN_HOME) Run As > Run Configurations > Eclipse Application > New Configuration > Environment tab > Add your MAVEN_HOME variable here
-
- Supported Java version: 11 and 17