[JAVA] Steps to build and install an existing Eclipse plug-in project yourself

Contents

Here is a summary of the steps to build and install an existing Eclipse plug-in project yourself. We are keeping in mind that there should be a project, but the plugin you are looking for does not hit in the search on the marketplace, or you want to modify an existing plugin and use it.

environment

Installing plugins for plugin development

Install Eclipse PDE. If you have already installed it, such as when using Pleiades All in One Eclipse for Java, skip this step. eclipse_1.jpg

Download an existing Eclipse plug-in project

Download or pull any project and extract it to any directory. This time, I am using DB Viewer Plugin on GitHub. I downloaded the zip file and unzipped it to "C: \ app \ project \ dbviewer-master". eclipse_2.jpg

Importing an existing Eclipse plug-in project

Import the project you got in the previous step into Eclipse.

  1. Select File> Import> General> Existing Project into Workspace and click Next>. eclipse_3.jpg

  2. In "Select root directory:", specify the directory where the project was expanded in the previous procedure, and click "Finish". eclipse_4.jpg

You will be able to check the imported project in "Project Explorer". You can check the operation of the plug-in by executing "Testing> Launch an Eclipse application" in "Overview" of "plugin.xml" directly under the project. eclipse_a1.jpg

Build the project

From here onward, basically, if you work in the order of "red frame" below the page "Tutorials> Create an Eclipse plug-in" displayed in "Help> Welcome", it is OK. eclipse_5.jpg

Create a feature

Create a "feature" in the "Plug-in Development" perspective.

  1. Enter the required information in "File> New> Feature Project" and click "Next>". The default is other than the red frame. eclipse_6.jpg

  2. Select the target plug-in and click "Finish". eclipse_7.jpg

You will be able to check the "feature" added in "Project Explorer". In "Double-click feature.xml> Information", enter "Feature Description" and "License Agreement", and save. eclipse_8.jpg

Create an update site

Create an "update site" in the "Plug-in Development" perspective. Here, it is assumed that the shared directory etc. on the file server is "update site".

  1. In "File> New> Project> Plug-in Development> Update Site Project", enter "Project Name:" and "Location:" and click "Finish". eclipse_9.jpg

  2. You can check the "update site" added in "Project Explorer". In "Double-click site.xml> Archives", enter "Description:" etc. and save it. eclipse_10.jpg

  3. Click "New Category" in "Site Map" of "site.xml". Enter any "ID" and "Name" for the added category and save it. eclipse_11.jpg

  4. Continue to select the category you just added in "Site Map" of "site.xml" and click "Add Feature". Select the "feature" created in the "Create feature" procedure on the pop-up, click "Add", and save. eclipse_12.jpg

Build & publish to update site

It's finally a build. "Create update site" Select "feature" of "site.xml> Site Map" created in step 4 and click "Build All". eclipse_13.jpg

When the build is completed, jars will be created in the "features" directory and "plugins" directory of the "update site" as shown below. eclipse_14.jpg

Installation

Start the target Eclipse and install the plug-in.

  1. In "Help> Install New Software", enter the URL of "update site" and click "Add" to display the plug-in you built earlier. Check "Next>" eclipse_15.jpg

  2. "Next>" in "Install Detail" eclipse_16.jpg

  3. Confirm the license, select "I accept ~" and select "Finish" (This time, we only confirm that the installation can be performed, so the license is not entered.) eclipse_17.jpg

If you reboot after the installation is complete, the installed plug-in will be available. eclipse_18.jpg

Reference material

Page "Tutorials> Create an Eclipse plug-in" displayed by "Help> Welcome" in Eclipse

Recommended Posts

Steps to build and install an existing Eclipse plug-in project yourself
Steps to install Maven on Mac and use it in Eclipse
[Swift 5] Note: Add Core Data to an existing project
What happened in "Java 8 to Java 11" and how to build an environment
Install the plugin in Eclipse
Install tomcat plugin in eclipse
How to install and use Composer on an ECS instance on Ubuntu 16.04
Steps to install samba on CentOS 8 and connect from Windows 10 Explorer
I tried to build an http2 development environment with Eclipse + Tomcat
How to install the language used in Ubuntu and how to build the environment
Install Ubuntu20.04 on RaspberryPi 4 and build Kubernetes to run the container
Vuze plugin to write and enjoy
Steps to install MySQL 8 on CentOS 8
Steps to install devtoolset-6 on CentOS 7
Challenge to install WSL2 and docker
Add gem'rails-i18n','~> 6.0.0' and what to do if bundle install gives an error
What to do if you can't install the plugin from the Eclipse marketplace
What to do and how to install when an error occurs in DXRuby 1.4.7
How to make an app with a plugin mechanism [C # and Java]