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