maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nagur B <nagu...@tcs.com>
Subject issue with filtering in Maven2
Date Mon, 03 Dec 2007 13:18:36 GMT
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



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message