PlantUML Java自动化

3

目前我正在从事一个项目,该项目应该通过PlantUML来表示所有类。我听说可以使用Maven自动生成这个UML。但不幸的是,所有的文章和存储库都已经过时了6-9年。

有没有人能给我提供一个教程?


如果这些旧文章仍然有效,那么它们有什么问题呢?这个插件仍然可以使用:https://github.com/devlauer/plantuml-generator - Datz
1个回答

3

例如使用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>

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接