You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by vincent daubry <vi...@yahoo.fr> on 2006/03/07 16:10:34 UTC
maven-archetype-webapp sources ?
Hi !
Sorry, this a newbie question.. I'm looking for the source code of the maven-archetype-webapp archetype used in the example given in the maven guide, i've looked on :
http://www.ibiblio.org/maven2/org/apache/maven/archetypes/maven-archetype-webapp/
but i cant find the archetype.xml file and the original file structure.
I need the source as an example to create my own archetype but maybe you could help me.. My problem is that i dont manage to get the right directory structure for my project from my custom archetype :
I would like WEB-INF\web.xml to be at the root of my project, but when i create my project it is always inside the "classes" directory and i get this error at packaging :
[INFO] Error assembling WAR
Embedded error: Deployment descriptor: C:\maven-2.0.2\projects\WebCalc1\target\WebCalc1-1.0\WEB-INF\web.xml does not exist.
In fact the web.xml file is in :
C:\maven-2.0.2\projects\WebCalc1\target\WebCalc1-1.0\WEB-INF\classes\WEB-INF\web.xml
Here is my archetype.xml :
<archetype>
<id>WebApp</id>
<sources>
<source>src/main/java/calculator.java</source>
</sources>
<testSources>
<source>src/test/java/calculatorTest.java</source>
</testSources>
<resources>
<resource>src/main/resources/index.jsp</resource>
<resource>src/main/resources/WEB-INF/web.xml</resource>
</resources>
</archetype>
Any help would be greatly appreciated !
Thanks in advance,
Vincent.
---------------------------------
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
Re: maven-archetype-webapp sources ?
Posted by vincent daubry <vi...@yahoo.fr>.
That was fast ! Thanks a lot :)
Piéroni Raphaël <ra...@gmail.com> a écrit : There :
http://svn.apache.org/viewcvs.cgi/maven/archetype/trunk/maven-archetypes/
2006/3/7, vincent daubry :
>
> Hi !
>
> Sorry, this a newbie question.. I'm looking for the source code of
> the maven-archetype-webapp archetype used in the example given in the
> maven guide, i've looked on :
>
> http://www.ibiblio.org/maven2/org/apache/maven/archetypes/maven-archetype-webapp/
> but i cant find the archetype.xml file and the original file structure.
>
> I need the source as an example to create my own archetype but
> maybe you could help me.. My problem is that i dont manage to get the
> right directory structure for my project from my custom archetype :
> I would like WEB-INF\web.xml to be at the root of my project, but
> when i create my project it is always inside the "classes" directory and
> i get this error at packaging :
>
> [INFO] Error assembling WAR
>
> Embedded error: Deployment descriptor: C:\maven-
> 2.0.2\projects\WebCalc1\target\WebCalc1-1.0\WEB-INF\web.xml does not
> exist.
>
>
> In fact the web.xml file is in :
>
> C:\maven-
> 2.0.2\projects\WebCalc1\target\WebCalc1-1.0\WEB-INF\classes\WEB-INF\web.xml
>
>
> Here is my archetype.xml :
>
>
> WebApp
>
> src/main/java/calculator.java
>
>
> src/test/java/calculatorTest.java
>
>
> src/main/resources/index.jsp
> src/main/resources/WEB-INF/web.xml
>
>
>
>
> Any help would be greatly appreciated !
> Thanks in advance,
> Vincent.
>
>
> ---------------------------------
> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les
> tarifs exceptionnels pour appeler la France et l'international.Téléchargezla version beta.
>
---------------------------------
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
Re: maven-archetype-webapp sources ?
Posted by Piéroni Raphaël <ra...@gmail.com>.
There :
http://svn.apache.org/viewcvs.cgi/maven/archetype/trunk/maven-archetypes/
2006/3/7, vincent daubry <vi...@yahoo.fr>:
>
> Hi !
>
> Sorry, this a newbie question.. I'm looking for the source code of
> the maven-archetype-webapp archetype used in the example given in the
> maven guide, i've looked on :
>
> http://www.ibiblio.org/maven2/org/apache/maven/archetypes/maven-archetype-webapp/
> but i cant find the archetype.xml file and the original file structure.
>
> I need the source as an example to create my own archetype but
> maybe you could help me.. My problem is that i dont manage to get the
> right directory structure for my project from my custom archetype :
> I would like WEB-INF\web.xml to be at the root of my project, but
> when i create my project it is always inside the "classes" directory and
> i get this error at packaging :
>
> [INFO] Error assembling WAR
>
> Embedded error: Deployment descriptor: C:\maven-
> 2.0.2\projects\WebCalc1\target\WebCalc1-1.0\WEB-INF\web.xml does not
> exist.
>
>
> In fact the web.xml file is in :
>
> C:\maven-
> 2.0.2\projects\WebCalc1\target\WebCalc1-1.0\WEB-INF\classes\WEB-INF\web.xml
>
>
> Here is my archetype.xml :
>
> <archetype>
> <id>WebApp</id>
> <sources>
> <source>src/main/java/calculator.java</source>
> </sources>
> <testSources>
> <source>src/test/java/calculatorTest.java</source>
> </testSources>
> <resources>
> <resource>src/main/resources/index.jsp</resource>
> <resource>src/main/resources/WEB-INF/web.xml</resource>
> </resources>
> </archetype>
>
>
> Any help would be greatly appreciated !
> Thanks in advance,
> Vincent.
>
>
> ---------------------------------
> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les
> tarifs exceptionnels pour appeler la France et l'international.Téléchargezla version beta.
>