I doubt that's what's the question was regarding. Filtering doesn't exclude
files...
I'm not an expert on the war plugin, but I would try the packagingExcludes
param. However, I'm wondering why you would like not to include the Java
classes of the war project? Why do they exist there if your don't want them?

/Anders

On Tue, Aug 10, 2010 at 13:54, Vishal Gupta <[email protected]> wrote:

> i guess u need to use filter
> <build>
>    <resources>
>      <resource>
>        <directory>src/main/resources</directory>
>        <filtering>true</filtering>
>      </resource>
>    </resources>
>  </build>
>
> http://maven.apache.org/guides/getting-started/index.html#How_do_I_filter_resource_files
>
> Regards,
> vishal
>
> On Tue, Aug 10, 2010 at 4:46 PM, Siddharth Gargate <[email protected]
> >wrote:
>
> > Hi all,
> > I wish to exclude WEB-INF classes folder from being added in the war
> file.
> > How can we do it?
> >
> > Thanks,
> > Sid
> >
>

Reply via email to