I'm not sure why you're replying to threads from three years ago, but I've
used the <packagingExcludes> directive to successfully exclude unwanted
files and directories from our war files. The <excludes>/<exclude>
mechanism seems spotty at best at the moment, see
http://jira.codehaus.org/browse/MWAR-198 for the write-up.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>${basedir}</warSourceDirectory>
<!--
This is hacky but <excludes>/<exclude> directives seem to be
somewhat
broken in recent versions of maven-war-plugin:
http://jira.codehaus.org/browse/MWAR-198 - DTS 5/28/09
-->
<packagingExcludes>**/*.bat,.classpath,**/*.java,pom.xml,.project,.settings/
**,**/*.sh,target/**</packagingExcludes>
...
</plugin>
</plugins>
...
</build>
- Damon
-----Original Message-----
From: Allan Wojcik [mailto:[email protected]]
Sent: Saturday, July 11, 2009 8:00 AM
To: [email protected]
Subject: RE: Exclude subversion files in war
I'm still experiencing the same problem.
Any hints?
Jim Mack-2 wrote:
>
> Juergen,
> Ran into this today when a developer accidentally checked in the
> target directory. Other than that mishap, we have not seen this
> behavior, in our war's. We are using maven 2.0.4, hope that helps.
>
> Jim
>
> -----Original Message-----
> From: schumhan [mailto:[email protected]]
> Sent: Wednesday, July 12, 2006 6:58 AM
> To: [email protected]
> Subject: Re: Exclude subversion files in war
>
>
> Hi,
> No, I dont have any inclusions. Just using the defaults from the
> war-plugin.
>
> Juergen
> --
> View this message in context:
> http://www.nabble.com/Exclude-subversion-files-in-war-tf1930919.html#a52
> 89146
> Sent from the Maven - Users forum 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]
>
>
>
--
View this message in context:
http://www.nabble.com/Exclude-subversion-files-in-war-tp5288845p24440962.htm
l
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]