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.
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.
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.
Additional Visual Aid
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.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
