Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.

guice:dot

The guice:dot goal of the Guice Maven Plugin is used to generate Visualisation diagrams for your Enterprise Integration Patterns which use Guice for their Dependency Injection framework.
It works like guice:embedded, it will boot up your Guice configuration but it will only keep up for a few seconds. This will then generate a GraphViz DOT file in target/site/cameldoc.

The plugin will then try and convert the DOT file into a HTML, PNG and SVG representation. To do this an installation of GraphViz is required to be on your PATH.

So to use this plugin, please download Graphviz then put it on your PATH.

By default the plugin will evaluate the dot executable, but you can overload this by configuring the plugin's executable property. e.g.

<configuration>
 <executable>DOT.EXE</executable>
</configuration>

Trying out guice:dot

A good example application to get you started is the Guice JMS Example.

cd examples/camel-example-guice-jms
mvn compile guice:dot

Your generated PNG/SVG files will then be in the target/site/cameldoc directory - assuming Maven could find your DOT executable.

Note that you do not need to explicitly run this goal; you could just integrate this plugin into the normal Maven report generation.

Disabling execution of DOT executable

In Camel 1.4 you can disable the execution of DOT by setting the useDot configuration parameter to false.

<reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.camel</groupId>
        <artifactId>guice-maven-plugin</artifactId>
        <configuration>
          <useDot>false</useDot>
        </configuration>
      </plugin>
    </plugins>
</reporting>
© 2004-2015 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram