geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Simons <>
Subject getting the mavenized website in place
Date Mon, 27 Oct 2003 20:02:58 GMT
Hi gang,

I figured I'd have a go at publishing some stuff on I found that typing 'maven site' 
consumes over 400mb of memory, then throws an OutOfMemoryException. I 
guess there's a 'few' leaks in maven :D

Anyway, to be able to build the site, I just redirected some 
functionality to an old-fashioned shell script. Works handy-dandy; it 
just highly inefficiently calls maven for each subproject. I also did 
some other tweaks. Patches attached for your consideration.

In short, here's how to get the mavenized website in place (under unix 
or cygwin; I'm sure its possible under windoze as well):

  # get geronimo and incubator-site cvs and apply patches
  cd ~/cvs
  cvs -z3 -d co -P \
    incubator-geronimo incubator-site
  cd incubator-geronimo
  cvs -z3 up -Pd
  cp /tmp/ .
  patch -p0 < /tmp/patch.txt
  chmod +x

  # build site
  maven site:tocvs
  cd ../incubator-site/build/projects/geronimo

  # add and commit
  cvsaddall # this is something like

# ssh -f -N
# for i in `find . -type d ! -name CVS`; do
#   cvs -q add $i
# done
# cvs -q add -R *
# kill %1
# I think cvsutils contains a script for handling this a little
# more gracefully

  cvs commit -m 'Publish website'

  # update the live site manually (optional)
  umask 002 # don't forget this!
  cd /www/
  cvs -z3 up -Pd

I probably have the karma to do this, but it's probably best if some 
active geronimo committers do some QA and then get to grips on this. 
Once that happens, it should also be possible to automate and run a 
script like this once every night.

comments, thoughts?



View raw message