maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nagur B <>
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: ${} in the struts.xml is getting replaced by the value of 
project.artifactID by maven2 filter plugin

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">
                                <param name="">${}</param>
                        <result name="input">/jsp/user/addUser.jsp</result

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

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

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

Any help appreciated

thnks and rgds,

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

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