xpath question

47 views
Skip to first unread message

boudewijn

unread,
Feb 23, 2011, 4:15:56 AM2/23/11
to maven-config-processor-users
Hello,

I'm trying to configure maven-config-processor-plugin, but Igot stuck
and don't know how to proceed.

I want to modify a web.xml context-param value. The plugin starts up
ok, I have maven debug mode enables (-X) but when the plugin starts
processing web.xml nothing shows.

I want to remove (or change) the following context-param:
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>

I'm trying to do this by defining the following:
<remove>
<name>//s:context-param[param-name='javax.faces.PROJECT_STAGE']</
name>
</remove>
But nothing happens. In pom.xml I've defined
<namespaceContexts>
<s>http://java.sun.com/xml/ns/j2ee</s>
</namespaceContexts>

Anybody can give me any clue?

best regards, Bo

Leandro de Oliveira

unread,
Feb 23, 2011, 10:48:08 AM2/23/11
to maven-config-p...@googlegroups.com, boudewijn
Hi,

You forgot to add "s:" to param-name too, the expression should be like this:

//s:context-param[s:param-name='javax.faces.PROJECT_STAGE']

2011/2/23 boudewijn <valb...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "maven-config-processor-users" group.
> To post to this group, send email to maven-config-p...@googlegroups.com.
> To unsubscribe from this group, send email to maven-config-process...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/maven-config-processor-users?hl=en.
>
>

boudewijn

unread,
Feb 24, 2011, 4:49:56 AM2/24/11
to maven-config-processor-users
Ok great that works!!

On 23 feb, 16:48, Leandro de Oliveira <lehph...@gmail.com> wrote:
> Hi,
>
> You forgot to add "s:" to param-name too, the expression should be like this:
>
> //s:context-param[s:param-name='javax.faces.PROJECT_STAGE']
>
> 2011/2/23 boudewijn <valbos...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages