Try something like this:
<plugin>
<groupId>org.apache.camel</groupId>
<artifactId>camel-maven-plugin</artifactId>
<version>2.2.0</version>
<configuration>
<systemProperties>
<systemProperty>
<key>java.util.logging.config.file</key>
<value>logging.properties</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
I used this a few weeks ago so know it works :)
On Wed, May 26, 2010 at 1:48 PM, M.Ismail <[email protected]> wrote:
>
> Hi,
>
> I want to specify system properties in my camel project. I run it using
> camel:run plugin which doesn't seem to be similar to maven-surefire-plugin
> in terms of specifying the system properties e.g.
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>exec-maven-plugin</artifactId>
> <configuration>
> <mainClass>com.mycompany.camel.CamelSample</mainClass>
>
> <systemProperties>
> <systemProperty>
> <key>java.util.logging.config.file</key>
> <value>
> src/main/resources/logging.properties
> </value>
> </systemProperty>
> </systemProperties>
> </configuration>
> </plugin>
>
> How can I do the same using the camel-maven-plugin? And if it is not
> possible can I do it using the maven 2 profies?
>
> Thanks
> --
> View this message in context:
> http://old.nabble.com/camel-maven-plugin-and-System-Properties-tp28682967p28682967.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Cheers,
Jon
Camel in Action: http://manning.com/ibsen
Blog: http://janstey.blogspot.com