mvn archetype:generate Select org.apache.maven.archetypes:maven-archetype-webapp as the archetype. Run below command to generate a .war file (web application archive) mvn clean package Copy the generated hello.war file (inside the target directory) to the webapps directory of Tomcat installation. Access the URL: http://localhost:8080/hello/