Installing Java Eclipse 3.7.1 Maven Jenkins (Hudson) and JBoss

At our last meeting, a question was asked about Jenkins & JBoss and since it had been about a year or so since my last dive into Hudson, I decided to install Jenkins and JBoss on Ubuntu 11.04 to make another deep dive. There some packages needed for a succesful implementation of these technologies including Sun's SDK/JRE for Java and Eclipse with the Maven plugin (m2eclipse). I need to flush out the following information as they are notes I made as I went through the process; however, all the information is here that one needs to build such a Ubuntu configuration. Note that both Jenkins and JBoss by default, want to use HTTP-ALT which is port 8080. I configured JBoss to use port 8400. Not included here is the GIT repository instructions for installing and using GIT which is used by both Eclipse and Jenkins. Install Sun Java JRE from PPA: sudo add-apt-repository ppa:ferramroberto/java sudo apt-get update sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts Get all the eclipse pieces. apt-get install eclipse update-alternatives --config java default was 0, changed to 2. How to install Eclipse 3.7 on Ubuntu 11.04 tar xzf eclipse-SDK-3.7-linux-gtk.tar.gz Maven 3 Install Installing Maven 3 on Ubuntu 11.04 LTS Server Download apache-maven-3.0.4-bin.tar.gz mkdir /usr/local/apache-maven tar -xzvf apache-maven-3.0.4-bin.tar.gz cp -R apache-maven-3.0.4 /usr/local/apache-maven/ added to .bashrc: export PATH=/usr/local/apache-maven/apache-maven-3.0.4/bin:$PATH export JAVA_HOME=/usr/lib/jvm/java-6-sun mvn --version Test Maven: mvn archetype:generate -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false Installing m2eclipse Now: What worked: Indigo - Select Collaboration and m2eclipse. Android Link: Install Jenkins on 11.04 sudo apt-get install aptitude aptitude-doc-en tasksel debtags libcwidget-dev wget -q -O - | sudo apt-key add - sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list' sudo aptitude update sudo aptitude install jenkins Installing JBoss AS 6.0 Final on Ubuntu Server 11.04 for mere mortals (Caution inappropriate language) sudo useradd -d /usr/local/jboss -s /bin/sh jboss sudo apt-get install sun-java6-jdk (using PPA from earlier Sun Java JRE installed) (173 MB) cd Downloads wget -O ~/ sudo unzip -d /usr/local/ sudo chown -R jboss:jboss /usr/local/jboss-6.git clone git:// root@11-04-DesktopServer:/usr/local/jboss-6.0.0.Final/server/default/conf/bindingservice.beans/META-INF# vi bindings-jboss-beans.xml Set port 8080 to 8400 cd root@11-04-DesktopServer:/usr/local/jboss/bin# sudo cp /usr/local/jboss/bin/ /usr/local/jboss/bin/ vi #make sure java is in your path JAVAPTH=${JAVAPTH:-"/usr/bin"} Adding system startup for /etc/init.d/jboss ... /etc/rc0.d/K20jboss -> ../init.d/jboss /etc/rc1.d/K20jboss -> ../init.d/jboss /etc/rc6.d/K20jboss -> ../init.d/jboss /etc/rc2.d/S20jboss -> ../init.d/jboss /etc/rc3.d/S20jboss -> ../init.d/jboss /etc/rc4.d/S20jboss -> ../init.d/jboss /etc/rc5.d/S20jboss -> ../init.d/jboss sudo /etc/init.d/jboss start Jetty Server: CLI: git clone git:// =>gitrepro Eclipse: Sample Applications Helloworld Demo - http://localhost:8400/helloworld/hi.jsp Gatein Portal -