Actually I'm not very sure what you are asking, I mean, are you looking for an alternative solution for maven-archetype-webapp?
With the maven archetype, you can create the above directory structure without any problems, of course, there will be no java and test folders there.
mvn archetype:generate -DgroupId=com.techidiocy -DartifactId=FirstWeb -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
2) If you use the eclipse IDE, you can issue the command below to convert your maven project to an Eclipse web project.
mvn eclipse:eclipse -Dwtpversion=2.0
This step 2 is optional if you do not plan to associate it with eclipse
thanks
source share