You can set up your simple java web application in no time using
maven. The application can be downloaded from maven's site.
Maven comes up with a single line command to create
Hello World web application for you. The value to the argument
archetypeArtifactId identifies that the project to be created is of type web application. In case you are running this command for the first time, it will take some time for the maven to download the dependent plugins first and then create the sample application
Create Web Application ProjectYour sample application is created and ready to be packaged and deployed
mvn archetype:create -DgroupId=com.simple.web -DartifactId=webapp -DarchetypeArtifactId=maven-archetype-webapp
Read more ...