结果

不想看过程分析的可以参考一下做法,这个包的缺失是因为idea插件更新没跟上的原因,因为这是一个新功能,把插件的包替换为官网最新包即可解决

问题分析

问题

!include <tupadr3/common>提示找不到该包

分析

资源缺陷

因为是找不到包,所以大部分的情况下应该是资源缺陷,打开
C:\Users\Administrator\.IntelliJIdea2017.2\config\plugins\plantuml4idea\lib
不同IDEA的版本可能不同位置,但应该都在C:\Users\Administrator\下面,只是版本号不是2017.2
因为插件包的plantuml的版本为2018.9,使用cmd命令行java -jar plantuml.1.2018.9.jar -stdlib检测底下的lib包
得到如下数据

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
aws
Version 18.02.22
Delivered by https://github.com/milo-minderbinder/AWS-PlantUML

cloudinsight
Version 0.0.1
Delivered by https://github.com/rabelenda/cicon-plantuml-sprites/

cloudogu
Version 0.0.1
Delivered by https://github.com/cloudogu/plantuml-cloudogu-sprites

devicons
Version 0.0.1
Delivered by https://github.com/tupadr3/plantuml-icon-font-sprites

font-awesome
Version 0.0.1
Delivered by https://github.com/tupadr3/plantuml-icon-font-sprites

material
Version 0.0.1
Delivered by https://github.com/Templarian/MaterialDesign

office
Version 0.0.1
Delivered by https://github.com/Roemer/plantuml-office

仔细一看,果然没有tupadr3这个包,我们可以下一份最新的版本,我当时下载的最新版本是1.2018.11,使用
java -jar plantuml.1.2018.9.jar -stdlib得到的结果多了一段

1
2
3
tupadr3
Version 2.0.0
Delivered by https://github.com/tupadr3/plantuml-icon-font-sprites

而这个就是我们需要的包了,将这个包替换到
C:\Users\Administrator\.IntelliJIdea2017.2\config\plugins\plantuml4idea\lib
下面,并将名字修改为plantuml.1.2018.9.jar,或者把plantuml4idea.jar里面的.\META-INF\plugin.xml内的配置文件也可以达到改名的效果,不过那样的话在更新插件可能会照成错误,所以并不推荐