Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Setting System Properties using maven-jetty plugin

Hi,

> On Thu, Jan 30, 2014 at 10:31 AM, Ravindra Kondiparthi
> <ravi.4indra@xxxxxxxxx> wrote:
>>
>> Hi,
>>
>> I use maven jetty plugin to run soapui tests as part of my maven build
>> process.
>>
>> my web.xml has system property(APP_FOLDERS_ROOT) which changes for every
>> environment.I am trying to identify a way to set this argument from maven.
>>
>>   <context-param>
>>         <param-name>application.properties</param-name>
>>
>> <param-value>${APP_FOLDERS_ROOT}/app_application.properties</param-value>
>>   </context-param>
>>
>> Versions:
>>  <jetty-version>9.1.0.v20131115</jetty-version>
>>
>> <jetty-maven-plugin-version>8.1.14.v20131031</jetty-maven-plugin-version>
>>
>> I tried setting the system property attribute in maven-jetty plugin but
>> did not work .
>>
>> any help is appreciated.

You need to "filter" (as in Maven language) the web.xml file.
You can find a full working example here:
https://github.com/sbordet/oort-chat-demo/blob/master/pom.xml.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.


Back to the top