Hi, I had a similar problem and solved it by packaging the submodule resources as a war file too. Next, let the war plugin overlay that war with the top-level war file. In my case the "submodule" is included by dependency and I had to add a <type>war</type> to the dependency tag to make that work. I'm not shure about how to do the overlaying thing with a real module.
Happy compiling Max -----Original Message----- From: AK [mailto:[EMAIL PROTECTED] Sent: 17 July 2006 12:51 To: users@maven.apache.org Subject: how to copy resources while building war Hi, I have a multimodule project, all modules' config properties are stored within each module's directory. For example, kernel module has its props in kernel/config folder. I have a web module, which uses all other modules, and all their properties must be stored within web-inf folder as this web module references them. If I make kernel/config a resource folder, config will be put inside kernel.jar, and won't be available for web app. So I have to copy the configs manually, which is annoying. How can I make maven copy the needed resources while creating war file (while compiling web app sources)? -- .:Regards, AK:. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]