You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Camel Maven Plugin

The Camel Maven Plugin is used to run Camel Spring configurations inside Maven for easy testing. A good example application to get you started is the Spring Example.

cd examples/camel-example-spring
mvn camel:run

How this works is that the plugin will compile the source code in the maven project, then boot up a Spring ApplicationContext using the XMl confiuration files on the classpath at

META-INF/spring/*.xml

This allows you to boot up any Spring services you wish; whether they are Camel related or any other Spring POJOs.

Visualiation

Camel supports Visualisation to be able to turn your Enterprise Integration Patterns into a nice graphical represenation.

By default when you use the camel:run plugin, you get 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 website

mvn camel:dot

Your generated PNG/SVG files will then be in the target/site/cameldoc directory.

  • No labels