1. Add following plugins to your pom.xml file
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<finalName>ServiceCreate</finalName>
<appendAssemblyId>false</appendAssemblyId>
<archive>
<manifest>
<mainClass>com.svt.optimoo.App</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>

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.

<configuration>
<outputDirectory>${project.build.directory}/${project.build.finalName}.lib</outputDirectory>
</configuration>

--

--

Prerequisites

  • 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