Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

camel:

...

dot

The camel:docdot goal of the Camel Maven Plugin is used to generate Visualisation diagrams for your Enterprise Integration Patterns.
It works like camel:embedded, it will boot up your Spring configuration but it will only keep up for a few seconds. This will then generate a GraphViz DOT file in target/site/cameldoc.

...

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

Trying out camel:

...

dot

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

Code Block
cd examples/camel-example-spring
mvn compile camel:docdot

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.

Code Block

<reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-maven-plugin</artifactId>
        <configuration>
          <useDot>false</useDot>
        </configuration>
      </plugin>
    </plugins>
</reporting>