You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Allan Wojcik <al...@gmail.com> on 2009/07/11 16:59:55 UTC
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:hans-juergen.schumacher@dlh.de]
> Sent: Wednesday, July 12, 2006 6:58 AM
> To: users@maven.apache.org
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Exclude-subversion-files-in-war-tp5288845p24440962.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Exclude subversion files in war
Posted by Skovran <sk...@skovran.com>.
If you'll forgive another bump on this thread, I found that including the
trailing '/' in the pattern will exclude the .svn directories:
<packagingExcludes>**/.svn/</packagingExcludes>
I am using maven-2.1.0 and maven-war-plugin-2.1-alpha-2.
--
View this message in context: http://www.nabble.com/Exclude-subversion-files-in-war-tp5288845p25403227.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Exclude subversion files in war
Posted by Damon Silver <da...@diio.net>.
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:allanwsilva@gmail.com]
Sent: Saturday, July 11, 2009 8:00 AM
To: users@maven.apache.org
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:hans-juergen.schumacher@dlh.de]
> Sent: Wednesday, July 12, 2006 6:58 AM
> To: users@maven.apache.org
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org