Put graphviz build plugin behind a profile

Allows normal builds to run without needing to have the GraphViz package installed.
This commit is contained in:
Paul Campbell 2022-12-04 08:22:01 +00:00
parent 0fa0ed9658
commit c7ded6a2ba

56
pom.xml
View file

@ -24,30 +24,36 @@
<maven-graph-plugin.version>1.45</maven-graph-plugin.version> <maven-graph-plugin.version>1.45</maven-graph-plugin.version>
</properties> </properties>
<build> <profiles>
<plugins> <profile>
<plugin> <id>graphviz</id>
<groupId>org.fusesource.mvnplugins</groupId> <!-- mvn -B -P graphviz validate -->
<artifactId>maven-graph-plugin</artifactId> <build>
<version>${maven-graph-plugin.version}</version> <plugins>
<executions> <plugin>
<execution> <groupId>org.fusesource.mvnplugins</groupId>
<phase>validate</phase> <artifactId>maven-graph-plugin</artifactId>
<goals> <version>${maven-graph-plugin.version}</version>
<goal>reactor</goal> <executions>
</goals> <execution>
</execution> <phase>validate</phase>
</executions> <goals>
<configuration> <goal>reactor</goal>
<direction>TB</direction> </goals>
<hideTransitive>true</hideTransitive> </execution>
<hideVersion>true</hideVersion> </executions>
<hideOptional>true</hideOptional> <configuration>
<hideScopes>test,provided</hideScopes> <direction>TB</direction>
<target>${project.basedir}/docs/images/reactor-graph.png</target> <hideTransitive>true</hideTransitive>
</configuration> <hideVersion>true</hideVersion>
</plugin> <hideOptional>true</hideOptional>
</plugins> <hideScopes>test,provided</hideScopes>
</build> <target>${project.basedir}/docs/images/reactor-graph.png</target>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>