Because you set archiveClasses to true, I suspect your resources files are
in the JAR created. Take a look at WEB-INF/lib instead.

Regards
Jeff MAURY

On Tue, Aug 17, 2010 at 6:26 AM, SACHIN :) <[email protected]>wrote:

>
> Hi
>
> I am new to maven and currently stuck so any help will be appreciated.
>
> I have a Maven web-app project and I need to build a jar file, which then
> gets included in the war. I got this to work by using the
> <archiveClass>true</archiveClass> for the war plugin.
>
> However, my resources folder content is no longer available on the class
> path ie.  /WEB-INF/classes/  is empty in the war file.
>
> how can I get the resources folder content in the war WEB-INF/classes/ SO
> THAT they are available in the classpath? These are some xml config files.
>
>
> target/classes  content is as expected but only when the war file is build
> the xml config files disappers!
>
> Thanks
>




-- 
"Legacy code" often differs from its suggested alternative by actually
working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Reply via email to