You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by schumhan <ha...@dlh.de> on 2006/07/12 15:41:43 UTC

Exclude subversion files in war

Hi,
I have a multi-module project and use the war-plugin to create finally a war
file. All that works more than fine. Actually my project is version
controlled by subversion and the war-plugin  puts  the files from .svn/*.*
all in the war file. I tried many hints like exludes or filter. Nothing
works !! I am quite sure there must be a easy way to do so because svn or
cvs are really common. Please give me any example or best practice how to do
this.
Thank you !
Juergen
-- 
View this message in context: http://www.nabble.com/Exclude-subversion-files-in-war-tf1930919.html#a5288845
Sent from the Maven - Users forum at Nabble.com.

Re: Exclude subversion files in war

Posted by schumhan <ha...@dlh.de>.
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#a5289146
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


Re: Exclude subversion files in war

Posted by Alexandre Touret <at...@free.fr>.
schumhan wrote:
> Hi,
> I have a multi-module project and use the war-plugin to create finally a war
> file. All that works more than fine. Actually my project is version
> controlled by subversion and the war-plugin  puts  the files from .svn/*.*
> all in the war file. I tried many hints like exludes or filter. Nothing
> works !! I am quite sure there must be a easy way to do so because svn or
> cvs are really common. Please give me any example or best practice how to do
> this.
> Thank you !
> Juergen
>   
Did you put an inclusion of several resource files in your build 
configuration like this ?

    <resource>
    <directory>src/main/java</directory>
    <includes>
        <include>**/*</include>
    </includes>
    </resource>

Alexandre

---------------------------------------------------------------------
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


RE: Exclude subversion files in war

Posted by Allan Wojcik <al...@gmail.com>.
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