Go to the command prompt execute the following command to generate Maven compatible Java project named as 'HibernateSLC'
mvn archetype:generate -DgroupId=com.khs.scrutiny -DartifactId=HibernateSLC -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
Above command will tell Maven to create a Java project from “maven-archetype-quickstart” template. If you ignore the archetypeArtifactId argument, a list of the templates will be listed for you to choose.
mvn archetype:generate -DgroupId=com.khs.scrutiny -DartifactId=HibernateSLC -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
Above command will tell Maven to create a Java project from “maven-archetype-quickstart” template. If you ignore the archetypeArtifactId argument, a list of the templates will be listed for you to choose.