1 Reply Latest reply on Jun 7, 2013 4:18 AM by Stephen Coy

    Make script to install war files on EC2 instance from Maven and JBoss

    James Akins Newbie

      Hi,

       

       

      So right now I am writing a script to have my instances download war files from my maven respository. This is what I have so far. This is written in Unix and I am having trouble getting started on the instructions on how to get the files from my Maven repository as well as JBoss. Any help would be appreciated! thanks in advance!

       

       

      ###############################

                          #BASIC START UP

      ###############################

       

       

      sudo yum install httpd mysql mysql-server tomcat* java* apache*

      chkconfig httpd on # turn on the web service

      /etc/init.d/httpd start

      if [ ! -f /var/www/html/

         cd /var/www/html

      #Maven and JBoss installation

                wget http://download.jboss.org/jbossas/7.0/jboss-as-7.0.2.Final/jboss-as-web-7.0.2.Final.tar.gz

                tar xvfz jboss-as-web-7.0.2.Final.tar.gz

                wget http://www.poolsaboveground.com/apache/maven/maven-2/2.2.1/binaries/apache-maven-2.2.1-bin.tar.gz

                tar xvfz apache-maven-2.2.1-bin.tar.gz

      fi

      yum -y update