PlantUML java automation

Viewed 342

Currently I am working on a project that should represent all classes via PlantUML's. I have heard that this UML could be generated automatically using Maven. But unfortunately all articles and repos are already 6-9 years old and therefore outdated.

Would anyone have a tutorial for me?

1 Answers

Eg. use https://github.com/devlauer/plantuml-generator

Just copied from the here 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>
Related