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:
parent
0fa0ed9658
commit
c7ded6a2ba
1 changed files with 31 additions and 25 deletions
56
pom.xml
56
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue