Hi,
I also need help figuring out how to use properties defined in pom.xml in
files like web.xml and faces-config.xml.
I found this thread but just looking at the contents in the URL sent by Matt
I could not figure out the steps I need to implement to make it work. Can
someone post the steps required for it to work on a clean AppFuse
installation? Or tell me if there is something wrong on what I did, as
described below?
Following the URL mentioned by Matt I did this:
1. added this into plugin maven-war-plugin's configuration element:
<webResources>
<resource>
<directory>src/main/webapp/WEB-INF</directory>
<includes>
<include>web.xml</include>
<include>faces-config.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</webResources>
2. defined a new property in pom.xml (e.g. prop1)
3. used this new property in both web.xml and faces-config.xml.
Unfortunately the result is that the property tokens on both XML files are
not being replaced with the value from pom.xml.
Any help pointing me to the correct direction to solve it is greatly
appreciated,
Pedro Burglin
mraible wrote:
>
> This should help:
>
> http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
>
> http://tinyurl.com/26m7mn
>
> Matt
>
> On 6/8/07, ros <[EMAIL PROTECTED]> wrote:
>>
>> Hi!
>>
>> I have some properties defined in pom.xml like:
>> <dwr.debug>true</dwr.debug>
>> <release.start><!--</release.start>
>> <release.end>--></release.end>
>>
>> <security.channelProcessingFilter>,channelProcessingFilter</security.channelProcessingFilter>
>>
>> How I can set this valuesin
>> web.xml:
>> <param-value>${dwr.debug}</param-value>
>> log4j.xml:
>> ${release.start}
>> <appender-ref ref="FILE"/>
>> <appender-ref ref="MAIL"/>
>> ${release.end}
>> security.xml
>>
>> /**=httpSessionContextIntegrationFilter,authenticationProcessingFilter
>> ${security.channelProcessingFilter},securityContextHolderAwareRequestFilter,rememberMeProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor
>>
>>
>> Any ideas welcome!
>>
>> Thanks!
>>
>> ros
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-set-in-web.xml-value-from-maven2-properties--tf3889903s2369.html#a11026773
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/how-to-set-in-web.xml-value-from-maven2-properties--tp11026773s2369p18571377.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]