To create a maven project, run command:
for sample project: -DarchetypeArtifactId=maven-archetype-quickstart for webapp project: -DarchetypeArtifactId=maven-archetype-webapp
mvn archetype:generate -DgroupId= -DartifactId= -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
to make it compatible with eclipse:
mvn eclipse:eclipse
when running file follow steps:
-
mvn compile
-
mvn build
-
mvn test