Boost Your UML Workflow: Install and Use PlantUML in IntelliJ IDEA
Learn how to quickly set up PlantUML in IntelliJ IDEA, configure Graphviz, and create UML diagrams directly within the IDE, including step-by-step installation, environment variable setup, and sample code for generating sequence and class diagrams.
What is PlantUML
PlantUML is an open‑source project that enables fast creation of UML diagrams. It defines a complete textual language for describing UML relationships and uses the powerful Graphviz rendering engine to generate images, SVG files, and other formats.
Advantages of PlantUML
Fully text‑based editing, no drag‑and‑drop controls, automatic layout, simple and attractive output.
Independent of any development platform; as long as the PlantUML JAR is available, diagrams can be generated.
Integrates with many editors and IDEs such as IntelliJ IDEA, Eclipse, Notepad++, etc.
Install PlantUML plugin in IntelliJ IDEA
Open File → Settings → Plugins , search for PlantUML integration , and install the plugin.
Install Graphviz
Download the Windows installer from the official site:
https://graphviz.gitlab.io/_pages/Download/windows/graphviz-2.38.msi
After installation, add environment variables: %GRAPHVIZ_HOME%\bin and set GRAPHVIZ_DOT to:
%GRAPHVIZ_HOME%\bin\dot.exeVerify Graphviz installation
Open a Windows command line and run dot -version. If version information is displayed, the configuration is correct.
Configure Graphviz in IntelliJ IDEA
Navigate to File → Settings → Other Settings → PlantUML and set the path to the Graphviz executable.
Create diagrams with PlantUML
Create a new .uml file in the project and write PlantUML code. The plugin renders the diagram in real time.
@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -> Bob: Another authentication Request
Alice <-- Bob: another authentication Response
@endumlThe right pane shows the generated diagram instantly.
You can also generate class diagrams from existing code, similar to the "IDEA one‑click UML" feature.
Alternative: PlantUML Viewer Chrome extension
If you prefer not to install Graphviz, you can use the PlantUML Viewer Chrome extension. After installing, you can edit PlantUML text in the browser and see the rendered diagram instantly.
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.
Java High-Performance Architecture
Sharing Java development articles and resources, including SSM architecture and the Spring ecosystem (Spring Boot, Spring Cloud, MyBatis, Dubbo, Docker), Zookeeper, Redis, architecture design, microservices, message queues, Git, etc.
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.
