Camel Maven PluginThe Camel Maven Plugin Goals Supported
<plugin> <groupId>org.apache.camel</groupId> <artifactId>camel-maven-plugin</artifactId> <configuration> <applicationContextUri>META-INF/spring/*.xml;YOUR_FILE_NAME_IN_THE_CLASS_PATH.xml</applicationContextUri> </configuration> </plugin> File based spring configuration filesIn Camel 1.4 loading file based spring context files is also supported. You configure this with the new option fileApplicationContextUri. Paths may be split using a semi-colon (;). This is usable for projects that is web applications and you store spring configuration files in WEB-INF. <plugin> <groupId>org.apache.camel</groupId> <artifactId>camel-maven-plugin</artifactId> <configuration> <fileApplicationContextUri>src/main/webapp/WEB-INF/camel*.xml</fileApplicationContextUri> </configuration> </plugin> Integration into Maven ReportsIf 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.
|