I normally have two subfolders of resources:
/src/main/resources/verbatim
/src/main/resources/filtered
/src/test/resources/verbatim
/src/test/resources/filtered
with the following in the build section of the pom
<resources>
<resource>
<filtering>false</filtering>
<directory>${basedir}/src/main/resources/verbatim</directory>
</resource>
<resource>
<filtering>true</filtering>
<directory>${basedir}/src/main/resources/filtered</directory>
</resource>
</resources>
<testResources>
<testResource>
<filtering>false</filtering>
<directory>${basedir}/src/test/resources/verbatim</directory>
</testResource>
<testResource>
<filtering>true</filtering>
<directory>${basedir}/src/test/resources/filtered</directory>
</testResource>
</testResources>
That way if I have problems with resources getting unwanted filtering,
they go into verabtim
On Nov 30, 2007 8:02 AM, Nagur B <[EMAIL PROTECTED]> wrote:
> 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
> =====-----=====-----=====
> 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
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]