Luca Gmail wrote:

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


Hi Luca,

Try adding this in your archetype.xml:
<resources>
   <resource>build.xml</resource>
</resources>

HTH,

Henry

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to