Create Simple Maven Application By Using cmd prompt:
*Internet connection is must to work with maven specially when you have jar dependencies.
Step1: →Open command prompt and go to target working directory, in my case i.e. C:\user\GEEK
C:\user\GEEK> mvn archetype:create -DgroupId=com.gl -DartifactId=projectname1
After copy the cmd click on enter, it will shown like bellow.
Step2: It wil download all jars,supporting files from the internet.
Step3: cmd prompt displays “BUILD SUCCESSFULLY ”
Then go and check in directories & folders (for project structure).