_
cd target
sync -s ${PathToYourSourceFolder} -d ${PathToYourDestinationFolder}
A\ 1) If you are using IntelliJ IDEA then you can use the maven integrated plugin to clean and install the application.
A\ 2) Else have maven installed in your local environment, then with the command line; change the directory to point to your project folder ( where the pom.xml file is )
_
cd ${projectDirectory}
mvn clean install
mvn clean install tells Maven to do the clean phase in each module before running the install phase for each module. What this does is clear any compiled files you ###have, making sure that you're really compiling each module from scratch.
B\ 1) Having built our project now under the target folder you could find the build jar file. To run the application open the command line prompt and point to the target folder where the jar file is located. Finally run the jar file using the command.
_
cd ${projectTargetDirectory}
java -jar ${nameOfYourJarFile}
_
@java -jar myapp-1.0-SNAPSHOT-shaded.jar %*
Free Software, Yay! ©HoussemSaafi