DEV Community

rinaxsumomo
rinaxsumomo

Posted on

How to Install OpenAPI (Swagger) Editor Plugin in Eclipse Offline

TL;DR

If you need to install the 42Crunch OpenAPI (Swagger) Editor plugin in Eclipse without internet access, here’s the clean way to do it.

Environment

macOS Sonoma 14.x
Eclipse IDE (2025 edition for Mac)

Steps

Step 1: Prepare an Online Machine

You’ll first download the plugin from the official update site using Eclipse’s built-in p2 mirror tool.

Latest Update Site URL(As of 2025/11/14)
https://eclipse.42crunch.com/updatesite-1.0.95
Enter fullscreen mode Exit fullscreen mode

Step2: Mirror the Update Site

On your online Mac machine, open Terminal and run:

# Go to Eclipse executable directory
cd /Applications/Eclipse.app/Contents/MacOS

# Mirror metadata
./eclipse \
-nosplash \
-application org.eclipse.equinox.p2.metadata.repository.mirrorApplication \
-source https://eclipse.42crunch.com/updatesite-1.0.95 \
-destination file:/Users/yourname/eclipse-mirror/42crunch

# Mirror artifacts
./eclipse \
-nosplash \
-application org.eclipse.equinox.p2.artifact.repository.mirrorApplication \
-source https://eclipse.42crunch.com/updatesite-1.0.95 \
-destination file:/Users/yourname/eclipse-mirror/42crunch

Enter fullscreen mode Exit fullscreen mode

What these options mean:

-nosplash → No GUI splash screen
-application → Runs the p2 mirror tool
-source → Online update site URL
-destination → Local folder for the mirrored repository

Step 3: Zip the Repository

After mirroring, verify that the folder contains:

artifacts.jar
content.jar
features/
plugins/
Enter fullscreen mode Exit fullscreen mode

Then zip it:

cd /Users/yourname/eclipse-mirror/42crunchzip -r 42crunch-openapi-p2.zip .
Enter fullscreen mode Exit fullscreen mode

Step 4: Install Offline

On the offline machine:

Open Eclipse → Help → Install New Software → Add → Archive...
Select 42crunch-openapi-p2.zip
Install and restart Eclipse.

✅ Done! You now have the 42Crunch OpenAPI Editor installed without internet access.

✅ Tip: This method works for any Eclipse plugin that provides a p2 update site.

✅ Why p2 Mirror is Better Than Dropins
You might wonder: why not just copy JAR files into Eclipse’s dropins folder?
Here’s why p2 mirror is the recommended approach:

  • Dependency resolution: p2 ensures all required bundles and features are installed correctly.
  • Update support: Future updates can be applied easily using the same mirrored repository.
  • Clean uninstall: p2 tracks installed components, so you can remove them without breaking Eclipse.
  • Dropins is a hack: It bypasses p2, often causing version conflicts and missing dependencies.

Top comments (0)