Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.16 KB

File metadata and controls

38 lines (29 loc) · 1.16 KB

JavaCalculator Project

Installing java and maven for java projects

  • sudo yum install java-1.8*
  • sudo yum install maven

Maven commands

  • mvn validate
  • mvn test
  • mvn compile
  • mvn package
  • mvn install
  • mvn deploy
  • integration-test

Java commands

  • java -jar target/Ravi <<<< name of the file containing the codes

Installaing tomcat for manual maven build

For all users to execute this script

  • chmod +x startup.sh

  • chmod +x shutdown.sh

  • ./startup.sh -- Now lets start tomcat service

Change port number from 8080 to 8090 (as Our Jenkins on AWS is also listening to the port 8080)

  • Browse to conf sub-directory under Tomcat directory and open server.xml file for editing using ‘nano’ command (vi command can also be used).
  • sudo vi server.xml
  • Restart the tomcat service (browse to the bin folder