Camel Maven Plugin
The Camel Maven Plugin allows you to run your Enterprise Integration Patterns inside Maven along with being able to support Visualisation along with integration of the Visualisation diagrams into the standard maven reports for your project.
Goals Supported
Documentation |
Reference |
Description |
---|---|---|
Boots up Camel in a new JVM using the Spring configuration at META-INF/spring/*.xml and runs your routing rules |
||
Boots up Camel in the same JVM as Maven using the Spring configuration at META-INF/spring/*.xml and runs your routing rules |
||
Generates DOT files and then HTML, PNG, SVG files for your EIP routing rules with integration into Maven Reports |
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 as part of the regular maven site generation.
For example add the following into your pom
<project> ... <reporting> <plugins> <plugin> <groupId>org.apache.camel</groupId> <artifactId>camel-maven-plugin</artifactId> </plugin> </plugins> </reporting> </project>
Then when you run
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.