I created my archetype with this structure:

C:.

L---main

    L---resources

        +---archetype-resources

        │   │   build.xml

        │   │   pom.xml

        │   │

        │   L---src

        │       L---main

        │           +---java

        │           │       WebApp.java

        │           │

        │           L---webapp

        │               │   index.jsp

        │               │

        │               L---WEB-INF

        │                       web.xml

        │

        L---META-INF

                archetype.xml

 

supposing that the id of this installed archetype were myArchetypeId, I
created my webapp in this way:

mvn archetype:create -DarchetypeGroupId=my.archetype.groupId /

                     -DarchetypeArtifactId=myArchetypeId /

                     -DarchetypeVersion=1.0-SNAPSHOT /

                     -DgroupId=my.webapp.groupId /

                     -DartifactId=myWebappArtifactId

 

All works fine but the build.xml is not present and this is the structure:

C:.

│   pom.xml

│

L---src

    L---main

        +---java

        │   L---my

        │       L---webapp

        │           L---groupId

        │                   WebApp.java

        │

        +---resources

        L---webapp

            │   index.jsp

            │

            L---WEB-INF

                    web.xml

 

how can I add a file in the root of the webapp?

 

Tnx,

Luca

Reply via email to