Maven-archetype-webapp Directory Structure?

archetypes, maven, maven-archetype

Solution

I assume that your issue is the missing `java` and `test` folders in a new project when using maven-archetype-webapp. There are no options to make that archetype to add those. Of course you could add them manually after the project was created.

You may find another archetypes in one of these lists:

- http://myjeeva.com/exclusive-maven-archetype-list.html

- http://docs.codehaus.org/display/MAVENUSER/Archetypes+List

If there is nothing that matches what you need I suggest creating an own archetype: http://maven.apache.org/guides/mini/guide-creating-archetypes.html

It is quite easy and if you plan to use one several times it's probably worth the effort.

Problem

Is there a possibility or a workaroud to use maven-archetype-webapp archetype to generate a maven webapp with plain directory structure like ``` /src /main /java /resources /webapp /test /java /resources ```

Original source

Related problems