You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Christopher W. Farnham" <ch...@wrycan.com> on 2004/01/30 01:24:34 UTC

maven release:build-distribution-src tries to zip root

When I try to do a release:build-distribution-src on either my Windows 
XP in Cygwin or my Linux box it
tries to tar my root directory.

I've read through the code and from what I can see it should be trying 
to gzip '${maven.scm.checkout.dir}/${maven.scm.cvs.module}'. 

Instead it tries to zip root like this:
|release:build-distribution-src:
    [tar] [DEBUG] Tar$TarFileSet: Setup scanner in dir \ with 
patternSet{ includes: [] excludes: [] }
|
I've debugged the properties by adding echo statements to the plugin.jelly:|
<goal name="release:build-distribution-src" 
prereqs="release:init,scm:checkout-project">
    <echo>dir="${maven.scm.checkout.dir}/${maven.scm.cvs.module}"</echo>
    <archive:gzip name="${releaseNameSrc}" 
dir="${maven.scm.checkout.dir}/${maven.scm.cvs.module}"/>
    <archive:zip name="${releaseNameSrc}" 
dir="${maven.scm.checkout.dir}/${maven.scm.cvs.module}"/>
  </goal>
|
And indeed, I get a statement like this: '[echo] dir="/"'|

<repository>
    
<connection>scm:cvs:pserver:${maven.username}@helium.wrycan.com:/usr/local/cvs/wrycanCode:classwell/contentmodel</connection>    
<developerConnection>scm:cvs:pserver:${maven.username}@helium.wrycan.com:/usr/local/cvs/wrycanCode:/classwell/contentmodel</developerConnection>
</repository>
|
I guess I could use some general help or examples of proper use of the 
release plugin.  I've also been playing with the
release:build-distribution-bin goal, and this seems to create empty zip 
and tar files in my target directory.|
|

Christopher Farnham
Senior Consultant at Wrycan, Inc.

chris.farnham@wrycan.com
http://www.wrycan.com