I managed to get it working (maven 2.0.9, maven-war-plugin 2.1-beta-1) with
the following:

<configuration>
...
<packagingExcludes>**/*.bat,.classpath,**/*.java,pom.xml,.project,.settings/
**,**/*.sh,target/**</packagingExcludes>
...
</configuration>

Hope that helps.

- Damon

-----Original Message-----
From: turbo-555 [mailto:[email protected]] 
Sent: Tuesday, June 16, 2009 5:52 AM
To: [email protected]
Subject: Re: Excluding files/webapp folder from a war




rynam0 wrote:
> 
> Try something like this?
> 
>         <configuration>
> 
>
<warSourceExcludes>src/main/webapp/someExcludedDirectory/**</warSourceExclud
es>
>         </configuration>
> 

I removed the "<packaging>war</packaging> at the beginning of the pom, and
tried with 
"mvn package war:war" (so it packages a jar and a war...)


I just tried this:

<warSourceExcludes>src/main/webapp/help/**</warSourceExcludes>

nothing changes


with
<webResources>
  <webResource>
    <directory>src/main</directory>
    <excludes>
      <exclude>**/webapp/</exclude>
      <exclude>**/help/</exclude>
      <exclude>webapp</exclude>
    </excludes>
  </webResource>
</webResources>

same story...it just avoid to put a webapp and java directory in the war,
but the help,static,style,...are still there


basically I'd like the war to have the same contents as the jar (pretty
much...)
-- 
View this message in context:
http://www.nabble.com/Excluding-files-webapp-folder-from-a-war-tp24050485p24
053693.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to