Structure of pom.xml
https://github.com/shankhadeepk/dependencydownloader/blob/main/pom.xml
Then go the location where the project is and run command
mvn clean install
A folder will be created at the location ([project]/target/[location as shown below]) which is given by following properties in the pom.xml
<outputDirectory>${project.build.directory}/lib</outputDirectory>