Maven-archetype-webapp Directory Structure?

Festus Tamakloe picture Festus Tamakloe · Jul 31, 2013 · Viewed 11.3k times · Source

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 

Answer

wemu picture wemu · Jul 31, 2013

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:

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.