目前我正在从事一个项目,该项目应该通过PlantUML来表示所有类。我听说可以使用Maven自动生成这个UML。但不幸的是,所有的文章和存储库都已经过时了6-9年。
有没有人能给我提供一个教程?
目前我正在从事一个项目,该项目应该通过PlantUML来表示所有类。我听说可以使用Maven自动生成这个UML。但不幸的是,所有的文章和存储库都已经过时了6-9年。
有没有人能给我提供一个教程?
例如使用https://github.com/devlauer/plantuml-generator
只需从这里复制(https://github.com/devlauer/plantuml-generator/blob/master/README.adoc):
<plugin>
<artifactId>plantuml-generator-maven-plugin</artifactId>
<groupId>de.elnarion.maven</groupId>
<version>1.1.2</version>
<executions>
<execution>
<id>generate-simple-diagram</id>
<goals>
<goal>generate</goal>
</goals>
<phase>generate-test-sources</phase>
<configuration>
<outputFilename>testdiagram1.txt</outputFilename>
<scanPackages>
<scanPackage>
some.package.to.process
</scanPackage>
</scanPackages>
</configuration>
</execution>
</executions>
</plugin>