Setting system properties for mvn camel:run works fine like this:
<build>
<plugins>
<plugin>
<groupId>org.apache.camel</groupId>
<artifactId>camel-maven-plugin</artifactId>
<version>2.0.0</version>
<configuration>
<systemProperties>
<property>
<key>version</key>
<value>${project.version}</value>
</property>
</systemProperties>
</configuration>
</plugin>
....
Doing similar thing for Camel report fails. System property does not
seem to have been set.
<reporting>
<plugins>
<plugin>
<groupId>org.apache.camel</groupId>
<artifactId>camel-maven-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<key>version</key>
<value>${project.version}</value>
</property>
</systemProperties>
</configuration>
</plugin>
Camel report initializes Spring context. I need to pass some system
properties to it. How do I do that ?
--
Dragisa Krsmanovic
Java Developer
Public Library of Science
http://www.plos.org