Skip to content

woodwhales/woodwhales-PlantUML-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

woodwhales-PlantUML-Tools

🚀 本工程由于代码架构设计不合理,2021-11-16 起暂停更新。

🚀 重构的新工程请移步至:https://github.com/woodwhales/woodwhales-maven-project-parser

根据指定 maven 工程生成组件图及模块关系视图的 plantUML 代码。

说明:plantUML 语法学习及安装,请移步至笔者的博文:PlantUML 语法之时序图

JDK 运行环境要求:JDK 1.8+

默认访问URL:http://127.0.0.1:8086/uml-tools/

在线生成 plantUML 图片:https://cloudcoders.cn/plant-uml

指定好根项目的绝对路径,选择组件视图代码中是否需要生成组件代码(默认不开启),点击立即提交即可。

以 mall 项目为例:https://github.com/macrozheng/mall

生成效果如下:

组件视图

关系视图

vsCode 集成的 plantUML 有默认图片大小限制,因此可以使用官网(https://plantuml.com/zh/download)提供的 jar 文件生成图片,执行如下命令:

官网下载:plantuml.jar

java -DPLANTUML_LIMIT_SIZE=8192 -jar plantuml.jar -charset UTF-8 D:\index.puml

参数说明:

-DPLANTUML_LIMIT_SIZE参数是设置图像的宽高,需要设置对应的大小即可。如果图像很大会存在内存问题。需要将参数-Xml1024m添加到 Java 虚拟机。

笔者将 plantuml-server 源码下载编译,自己搭建了一个在线预览版:https://cloudcoders.cn/plant-uml

About

根据指定 maven 工程生成组件图及模块关系视图的 plantUML 代码

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages