• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

How to exclude directories and files from scm:checkout

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to exclude all the jar files under /lib during check out from SVN.
I tried mvn scm:checkout Dexcludes=/lib, *.jar but it didn't work.

Haven't figured out how to do it. Can someone throw some light on?

Thanks,
Rich
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is that a typo?
 
Richard Vagner
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi David,

What part is a typo?
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The missing dash.
 
Richard Vagner
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks David.

I tried the following but it is still not working. The jar files still get checked out.

mvn scm:checkout -Dexcludes=/lib
mvn scm:checkout -Dexcludes=*.jar

I am trying to exclude jar files in suversion repository: http://192.168.1.100/svn/trunk/XYZSystem/WebContent/WEB-INF/lib

I have this in pom.xml

<scm>
<connection>
scm:svn:http://xxx:yyy@192.168.1.100/svn/trunk/XYZSystem
</connection>
<tag>HEAD</tag>

</scm>

What am I missing here?

I appreciate your help.
Rich
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(Sorry if this is a dupe--I thought I posted from work and now I don't see it.)

I'd try putting in the full path, or try **/*.jar, etc. first and see what that does--I've never actually excluded anything from a checkout like that... and when using Maven I'm not sure why there'd be libs in the lib dir in the repo anyway.
 
reply
    Bookmark Topic Watch Topic
  • New Topic