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 http://ubuntuforums.org/archive/index.php/t-471488.html update-alternatives --config java default was 0, changed to 2. How to install Eclipse 3.7 on Ubuntu 11.04 http://colinrrobinson.com/technology/install-eclipse-ubuntu/ tar xzf eclipse-SDK-3.7-linux-gtk.tar.gz Maven 3 Install http://lukieb.wordpress.com/2011/02/15/installing-maven-3-on-ubuntu-10-04-lts-server/ Installing Maven 3 on Ubuntu 11.04 LTS Server http://blog.btmatthews.com/2011/08/04/installing-maven-3-on-ubuntu-11-04-lts-server/ http://sites.google.com/site/installmaven3onubuntu2011/ 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 -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false Installing m2eclipse Now: http://eclipse.org/m2e What worked: Indigo - http://download.eclipse.org/releases/indigo Select Collaboration and m2eclipse. Android Link: http://stackoverflow.com/questions/6482268/eclipse-indigo-cannot-install-android-adt-plugin Install Jenkins on 11.04 https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu sudo apt-get install aptitude aptitude-doc-en tasksel debtags libcwidget-dev wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian 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 http://www.caseyfulton.com/?p=14 (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) jboss-as-distribution-6.0.0.Final.zip (173 MB) cd Downloads wget -O ~/jboss-as-distribution-6.0.0.Final.zip http://sourceforge.net/projects/jboss/files/JBoss/JBoss-6.0.0.Final/jboss-as-distribution-6.0.0.Final.zip/download sudo unzip jboss-as-distribution-6.0.0.Final.zip -d /usr/local/ sudo chown -R jboss:jboss /usr/local/jboss-6.git clone git://git.eclipse.org/gitroot/jetty/org.eclipse.jetty.project.git0.0.Final/ 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/jboss_init_redhat.sh /usr/local/jboss/bin/jboss_init_ubuntu.sh vi jboss_init_ubuntu.sh #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: http://www.eclipse.org/jetty/downloads.php http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/ CLI: git clone git://git.eclipse.org/gitroot/jetty/org.eclipse.jetty.project.git =>gitrepro Eclipse: http://git.eclipse.org/gitroot/jetty/org.eclipse.jetty.project.git Sample Applications http://www.centerkey.com/jboss/ https://docs.jboss.org/author/display/AS7/Getting+Started+Developing+Applications+Guide#GettingStartedDevelopingApplicationsGuide-CDIServlet%3AHelloworldquickstart Helloworld Demo - http://localhost:8400/helloworld/hi.jsp Gatein Portal - https://community.jboss.org/thread/177121