Skip to content

itsallcode/plantuml-maven-plugin

Repository files navigation

PlantUML Maven Plugin

This plugin renders PlantUML diagrams during a Maven build while letting the consuming project choose the PlantUML dependency version.

Rendered files keep their relative path below sourceFiles.directory, so nested diagram trees are reproduced below outputDirectory.

Project Information

Build Maven Central

SonarCloud status:

Quality Gate Bugs Code smells Coverage Duplicated Lines Lines of Code Maintainability Rating Reliability Rating Security Rating Technical Dept Vulnerabilities

Configuration

The plugin supports the configuration shape used by com.github.jeluard:plantuml-maven-plugin for source file selection, output format, and output directory.

<plugin>
  <groupId>org.itsallcode</groupId>
  <artifactId>plantuml-maven-plugin</artifactId>
  <version>0.2.0</version>
  <configuration>
    <sourceFiles>
      <directory>${basedir}/model/diagrams</directory>
      <includes>
        <include>**/*.plantuml</include>
      </includes>
    </sourceFiles>
    <format>svg</format>
    <outputDirectory>${basedir}/doc/images/uml</outputDirectory>
  </configuration>
  <dependencies>
    <dependency>
      <groupId>net.sourceforge.plantuml</groupId>
      <artifactId>plantuml</artifactId>
      <version>1.2026.6</version>
    </dependency>
  </dependencies>
</plugin>

CI

GitHub Actions runs mvn clean verify for pushes to main and pull requests. When SONAR_TOKEN is configured in GitHub Actions secrets, the workflow also publishes coverage and static-analysis results to SonarCloud.

SonarCloud consumes the JaCoCo XML report produced by the Maven build. The Maven Invoker based integration tests run the plugin in separate Maven processes, so the build injects a dedicated JaCoCo agent into those forked JVMs and merges their execution data with the unit-test coverage before generating the report.

About

Maven plugin to render diagrams from PlantUML files

Resources

License

Code of conduct

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages