rynam0 wrote:
> 
> Try something like this?
> 
>         <configuration>
> 
> <warSourceExcludes>src/main/webapp/someExcludedDirectory/**</warSourceExcludes>
>         </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-tp24050485p24053693.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]

Reply via email to