Try something like this?

        <configuration>

<warSourceExcludes>src/main/webapp/someExcludedDirectory/**</warSourceExcludes>
        </configuration>

On Tue, Jun 16, 2009 at 8:07 AM, turbo-555 <fdur...@ticino.com> wrote:

>
> exactly, I'm trying to find a way or an example how to configure it, and
> the
> doc you posted...I've seen it and went over it several times trying
> different combinations, but it ain't working out.
>
>
> without touching at the plugin, but just setting the packaging to war the
> files that mvn puts in the target are different...(with a jar it doesn't
> pack all those help, images,...folders)
>
> so I tryed configuring as written on the doc, but if I write:
> <webResources>
>  <resource>
>    <directory>src/main</directory>
>    <excludes>
>      <exclude>webapp</exclude>
>    </excludes>
>  </resource>
> </webResources>
>
> it adds even more folders and it doesn't exclude anything
>
> with:
> <webResources>
>  <resource>
>    <excludes>
>      <exclude>webapp</exclude>
>    </excludes>
>  </resource>
> </webResources>
>
>
> it raises a nullpointer at packaging.
>
>
>
>
>
>
>
> rynam0 wrote:
> >
> > It sounds to me like you want to configure the maven-war-plugin with
> > some excludes.   Docs can be found here:
> >
> >
> http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
> >
>
> --
> View this message in context:
> http://www.nabble.com/Excluding-files-webapp-folder-from-a-war-tp24050485p24052974.html
>  Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
�...@n

Reply via email to