If you also use those files in the domain project, they shouldn't be in the
WEB-INF directory because you would have to duplicate them. It wouldn't be a
very good design. So your issue isn't related to Maven but to your
application structure. You should fix this by specifying the following
entries in your web.xml file :
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
applicationContext-web.xml
applicationContext-domain.xml
</param-value>
</context-param>
Simple as that.
On 5/6/06, Ilya Sterin <[EMAIL PROTECTED]> wrote:
All, I have a multi-module project, one called domain (where most
business logic is located) and the other is webapp.
I'm using Spring.
In my domain module, I have various Spring context configuration files
in the resources directory. In order to make things work with Spring
MVC in the webapp module, my web.xml file has the following...
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext-web.xml
/WEB-INF/applicationContext-domain.xml
</param-value>
</context-param>
Specifying the various collections of Spring configuration files.
The question is, when I build my webapp module, what is the best way
to grab the applicationContext-domain.xml file from the domain modules
resources dir and place it in WEB-INF?
Also, I might still have a Ant way of doing things:-), so if you have
any recommendations of the best way of doing this, please let me know.
I can't simply have this file in the WEB-INF dir to begin with, since
the domain module needs to be able to run independent unit tests and
will eventually provide other services that are not served to a web
client.
Any ideas would be appreciated.
Thanks.
Ilya Sterin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]