geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject How to package a release (Re: svn commit: r231163 - in /geronimo/site: docs/downloads.html xdocs/downloads.xml)
Date Thu, 11 Aug 2005 23:18:21 GMT
On Aug 10, 2005, at 11:30 AM, David Jencks wrote:

> David, could you take a look at GERONIMO-853?  I would prefer we  
> use the maven dist goal to make our dist and that we adapt the  
> maven plugin and assembly plugin to expect the dist output rather  
> than a jar.  What do  you think?

Not so familiar with the dist plugin.  If you are willing to work on  
getting our releases to be fully mavenized, +10000000.  I've tried a  
couple times to get someone to do a jelly version of how we do things:

http://www.mail-archive.com/dev@geronimo.apache.org/msg04584.html
http://mail-archives.apache.org/mod_mbox/geronimo-dev/200409.mbox/% 
3c20040923065313.GA8325@sweetums.ce1.client2.attbi.com%3e

For the script-challenged, here are the exact commands ran to make M4.

[1] ~/work: rm -rf ~/.maven/repository/geronimo*
[2] ~/work: svn checkout http://svn.apache.org/repos/asf/geronimo/ 
tags/v1_0_M4 geronimo-1.0-M4
[3] ~/work: find geronimo-1.0-M4 -name .svn -exec rm -rf {} ;
[4] ~/work: tar czf ~/work/dist/geronimo-1.0-M4-src.tar.gz  
geronimo-1.0-M4
[5] ~/work: zip -9rq ~/work/dist/geronimo-1.0-M4-src.zip geronimo-1.0-M4
[6] ~/work: maven -o -Dmaven.itest.skip=true -Dmaven.test.skip=true
[7] ~/work/geronimo-1.0-M4/modules/assembly/target: tar czf ~/work/ 
dist/geronimo-1.0-M4.tar.gz geronimo-1.0-M4
[8] ~/work/geronimo-1.0-M4/modules/assembly/target: zip -9rq ~/work/ 
dist/geronimo-1.0-M4.zip geronimo-1.0-M4
[9] ~/work: openssl md5 < ~/work/dist/geronimo-1.0-M4-src.zip > ~/ 
work/dist/geronimo-1.0-M4-src.zip.md5
[10] ~/work: openssl sha < ~/work/dist/geronimo-1.0-M4-src.zip > ~/ 
work/dist/geronimo-1.0-M4-src.zip.sha
[11] ~/work: gpg --armor --output ~/work/dist/geronimo-1.0-M4- 
src.zip.asc --detach-sig ~/work/dist/geronimo-1.0-M4-src.zip
[12] ~/work: gpg --verify ~/work/dist/geronimo-1.0-M4-src.zip.asc ~/ 
work/dist/geronimo-1.0-M4-src.zip
[13] ~/work: openssl md5 < ~/work/dist/geronimo-1.0-M4.zip > ~/work/ 
dist/geronimo-1.0-M4.zip.md5
[14] ~/work: openssl sha < ~/work/dist/geronimo-1.0-M4.zip > ~/work/ 
dist/geronimo-1.0-M4.zip.sha
[15] ~/work: gpg --armor --output ~/work/dist/geronimo-1.0-M4.zip.asc  
--detach-sig ~/work/dist/geronimo-1.0-M4.zip
[16] ~/work: gpg --verify ~/work/dist/geronimo-1.0-M4.zip.asc ~/work/ 
dist/geronimo-1.0-M4.zip
[17] ~/work: openssl md5 < ~/work/dist/geronimo-1.0-M4-src.tar.gz > ~/ 
work/dist/geronimo-1.0-M4-src.tar.gz.md5
[18] ~/work: openssl sha < ~/work/dist/geronimo-1.0-M4-src.tar.gz > ~/ 
work/dist/geronimo-1.0-M4-src.tar.gz.sha
[19] ~/work: gpg --armor --output ~/work/dist/geronimo-1.0-M4- 
src.tar.gz.asc --detach-sig ~/work/dist/geronimo-1.0-M4-src.tar.gz
[20] ~/work: gpg --verify ~/work/dist/geronimo-1.0-M4-src.tar.gz.asc  
~/work/dist/geronimo-1.0-M4-src.tar.gz
[21] ~/work: openssl md5 < ~/work/dist/geronimo-1.0-M4.tar.gz > ~/ 
work/dist/geronimo-1.0-M4.tar.gz.md5
[22] ~/work: openssl sha < ~/work/dist/geronimo-1.0-M4.tar.gz > ~/ 
work/dist/geronimo-1.0-M4.tar.gz.sha
[23] ~/work: gpg --armor --output ~/work/dist/geronimo-1.0- 
M4.tar.gz.asc --detach-sig ~/work/dist/geronimo-1.0-M4.tar.gz
[24] ~/work: gpg --verify ~/work/dist/geronimo-1.0-M4.tar.gz.asc ~/ 
work/dist/geronimo-1.0-M4.tar.gz
[25] ~/work: ssh apache.org mkdir /www/cvs.apache.org/dist/geronimo/ 
unstable/1.0-M4
[26] ~/work: scp ~/work/dist/geronimo-1.0-M4* apache.org:/www/ 
cvs.apache.org/dist/geronimo/unstable/1.0-M4

It took some work to put that together for the purposes of this  
discussion, so I hope it's useful.  This is pretty much the same  
thing done for M1, M2 and M3.  As far as I can see, GERONIMO-853  
would help somewhat with lines 7 and 8.

Here is a pseudo-script version:

<pseudo-script>
clean geronimo from maven.repo.local
checkout geronimo/tags/v1_0_M4 to dir geronimo-1.0-M4
remove all ".svn" directories
tar dir geronimo-1.0-M4 as geronimo-1.0-M4-src.tar.gz
zip dir geronimo-1.0-M4 as geronimo-1.0-M4-src.zip
build with maven -- offline, skip tests
in modules/assembly/target tar dir geronimo-1.0-M4 as geronimo-1.0- 
M4.tar.gz
in modules/assembly/target zip dir geronimo-1.0-M4 as geronimo-1.0- 
M4.zip

foreach archive in-list (geronimo-1.0-M4-src.tar.gz, geronimo-1.0-M4- 
src.zip, geronimo-1.0-M4.tar.gz, geronimo-1.0-M4.zip)
    make md4 of $archive as $archive.md5
    make sha of $archive as $archive.sha
    make signature of $archive as $archive.asc
    check signature $archive.asc
done

make 1.0-M4 directory at apache.org in dir /www/cvs.apache.org/dist/ 
geronimo/unstable
copy geronimo-1.0-M4*  to  apache.org in dir /www/cvs.apache.org/dist/ 
geronimo/unstable/1.0-M4
</pseudo-script>

Took me a couple hours to put the details in this email together-- 
shows how much I hate jelly ;-)

-David

Mime
View raw message