
For full information to build jetty jboss, see http://docs.codehaus.org/display/JETTY/JBoss

in short:

to build:
mvn -Djboss.home=/path/to/jboss-4.0.x clean install

to install:
   1. delete $JBOSS-HOME/server/default/deploy/jbossweb-tomcat55.sar (or from whichever deploy directory you
      are using)
   2. ensure you have built the Jetty JBoss module in $jetty.home/extras/jboss
   3. copy the $jetty.home/extras/jboss/target/jetty-JETTY-VERSION-jboss-JBOSS-VERSION.sar to your JBoss
      deploy directory (where JETTY-VERSION is the version of jetty you are using and JBOSS-VERSION is the
      version of JBoss).


