...
Camel supports Visualisation to be able to turn your Enterprise Integration Patterns into a nice graphical represenation.
By default when you use If you run the camel:doc plugin it will boot up your CamelContext just like the camel:run plugin , you get but it will only keep up for a few seconds. During that time
it will generate a DOT file generated in target/site/cameldoc. If you then run the camel:dot plugin it will turn that DOT file into a PNG and SVG file you can show on your websiteThen this DOT file will be converted nicely into a HTML report.
Code Block |
---|
mvn camel:dotdoc |
Your generated PNG/SVG files will then be in the target/site/cameldoc directory.
Integration into Maven Reports
If you add the camel-maven-plugin to your <reporting> section of your pom you will automatically get the Visualisation reporting generated for your project.
For example add the following into your pom
Code Block | ||
---|---|---|
| ||
<project>
...
<reporting>
<plugins>
<plugin>
<groupId>org.apache.camel</groupId>
<artifactId>camel-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
</project>
|
Then when you run
Code Block |
---|
mvn site
|
Your context will be booted up via the META-INF/spring/*.xml files, the DOT file generated and a nice HTML report created.