You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Nagur B <na...@tcs.com> on 2007/12/03 14:18:36 UTC

issue with filtering in Maven2

Dear all,

My dev environment is - Struts2, Spring, Maven version: 2.0.5

Problem: ${user.id} in the struts.xml is getting replaced by the value of 
project.artifactID by maven2 filter plugin

Description:
part of my struts.xml : 
                <action name="saveUser" class=
"com.user.web.action.UserAction" method="save">
                        <result name="success" type="redirect-action">
                                <param name="actionName">
showUserDetails.action</param>
                                <param name="user.id">${user.id}</param>
                        </result>
                        <result name="input">/jsp/user/addUser.jsp</result
>
                </action>

After the save happens, the user is redirected to another action 
showUserDetails.action and setting the property of {user.id} dynamically.

But When the build happens, the above ${user.id}  is getting replaced by 
com.myproject:war:0.1-SNAPSHOT during build time.

I suspect that maven resources plugin / filter plugin is confusing the 
user.id property to project.artifactId property.

Any help appreciated


thnks and rgds,
Basav

ForwardSourceID:NT00019D72 
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you