Maybe you can try to configure your resources folder as a WebResource in the plugin configuration. See http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#webResourcesfor more info.
Regards Jeff MAURY On Tue, Aug 17, 2010 at 1:38 PM, SACHIN :) <[email protected]>wrote: > > Hi > > Yes, you are correct Jeff, the resources content ends up in the jar file > under WEB-INF/lib. > > Is it a way to exclude the resources content from the jar and put it in the > WEB-INF/classes WHEN the war is build? > > Thanks > Sachin > > > > From: [email protected] > > Date: Tue, 17 Aug 2010 10:32:06 +0200 > > Subject: Re: Maven war build ignores resources folder > > To: [email protected] > > > > 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 > > -- "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
