3

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?

Flimtix
  • 356
  • 1
  • 4
  • 17
  • what's wrong with following old articles if they are still valid? This plugin still works: https://github.com/devlauer/plantuml-generator – Datz Sep 06 '21 at 10:02

1 Answers1

3

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>
Datz
  • 3,156
  • 3
  • 22
  • 50