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

Compare with Current View Page History

« Previous Version 8 Next »

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 Visualation diagrams into the standard maven reports for your project.

Goals

The following Goals are supported

Documentation

Reference

Description

camel:run

camel:run

Boots up Camel in a new JVM using the Spring configuration at META-INF/spring/*.xml and runs your routing rules

camel:embedded

camel:embedded

Boots up Camel in the same JVM as Maven using the Spring configuration at META-INF/spring/*.xml and runs your routing rules

camel:doc

camel:doc

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.

  • No labels