How to Install Alibaba’s Java Code Scan Plugin (p3c) in IDEA and Eclipse

This guide explains how to add Alibaba’s Java development handbook scanning plugin to IntelliJ IDEA and Eclipse, showing its Blocker/Critical/Major issue levels, real‑time inspection support, batch fixes for legacy code, and step‑by‑step installation procedures.

Programmer DD
Programmer DD
Programmer DD
How to Install Alibaba’s Java Code Scan Plugin (p3c) in IDEA and Eclipse

At the Alibaba Cloud R&D Efficiency Summit on October 15, Alibaba released the Alibaba Java Development Handbook scanning plugin (p3c) . The plugin analyzes Java code against the handbook rules and marks violations as Blocker / Critical / Major. It integrates with IDEA’s Inspection mechanism for real‑time detection and offers batch‑fix for historical code.

IDEA Installation

The plugin is published in the official JetBrains Marketplace (minimum IDEA 14.1.7, JDK 1.7+). To install:

Open Settings >> Plugins >> Browse repositories.

Search for "Alibaba" and select the p3c plugin.

Click Install and wait for the installation to finish.

IDEA plugin installation screenshot
IDEA plugin installation screenshot

Eclipse Installation

The Eclipse version supports Eclipse 4.2 (Juno) and later (JDK 1.8+). Install via the update site:

Open Help >> Install New Software.

Enter the update URL https://p3c.alibaba.com/plugin/eclipse/update and press Enter.

Select the p3c plugin from the list and complete the installation.

To check for newer versions, use Help >> Check for Updates.

Using the Plugin

After installation, right‑click in the editor to view detected issues and quick‑fix suggestions. The plugin highlights code violations according to the handbook severity levels and can automatically apply fixes where applicable.

Plugin usage example
Plugin usage example
Violation list
Violation list
Batch fix dialog
Batch fix dialog

Additional Visual Aid

Auto‑completion preview
Auto‑completion preview

The plugin provides a smooth development experience by instantly flagging code quality issues and offering quick fixes, making it a valuable tool for Java developers.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Javaplugincode qualityIDEAstatic analysisp3cEclipse
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.