1. Add following plugins to your pom.xml file

instead of com.svt.optimoo.App you have to add your main class.

Then you have to run it with

mvn clean compile assembly:single

If terminal said that, “mvn” is not an command in your intelij terminal then instead of pressing “Enter” , press “ctr+Enter”.

This will create the jar file inside of the target folder. Otherwise you can specify the output folder by adding following configuration.





  • A maintained/supported version of CentOS (Docker doesn’t test or support outdated versions)
  • A user account with sudo privileges
  • CentOS Extras repository — this is enabled by default, but if yours has been disabled you’ll need to re-enable it
  • Software package installer yum

Run these commands on your terminal

sudo yum check-update
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker

After installation complete, we can manage Docker service

Start, enable and check the service status.

sudo systemctl start docker
sudo systemctl enable docker
sudo systemctl status docker
Status of docker after start



thisara jayaweera

thisara jayaweera

Computer Science undergraduate of University of Colombo School of Computing