I have a Maven project which I assemble using the following command in the Terminal (Command Line):
mvn clean package -DskipTests=true
This assembles the project in a zip file inside the 'target' folder. I want like to know if it's possible to assemble the project in a different directory inside my machine.
Update on the duplicate claim: This is not a duplicate to the 'maven: how to place the output jar into another folder' because that question asks how to fix the jars' output from the POM file. My question is about being able to assemble the maven project in a zip file from the command line, so that the directory can be changed every time it's assembled if desired.