To package the server jar, run the command:
mvn clean compile assembly:single -DskipTests -Pserver
To package the client jar, run the command:
mvn clean compile assembly:single -DskipTests -Pclient
To start the sever, run the following command:
java -jar server.jar
To start the client, run the following command:
java -jar client.jar localhost 8888 <name>
example1:
java -jar client.jar localhost 8888 Martin
example2:
java -jar client.jar localhost 8888 Martin2