DEPLOYMENT: to run the file on a ec2 instance, use the following commands:
-
Run mvn clean install to get the image.
-
Copy the jar file. scp ./ ./ @:~
-
SSH into the instance using either the Amazon console or using ssh -i <key-pair.pem> @
-
Download java jdk 11: sudo yum install java-11-amazon-corretto
-
Run the jar file. java -jar [path to jar file]