The java folder is for your java source code, while the webapp folder is for your web application source files such as jsp files. Create a jar project through the quickstart archetype to get an example of the former and the webapp archetype shows the latter.
/Anders On Sun, Apr 25, 2010 at 21:59, Dan King <[email protected]> wrote: > Hi all, > > I've recently started learning/using maven, and I'm unclear where my source > code is supposed to go. I used the maven archetype:create goal to create a > webapp. In "Maven by Example" the servlet source code is placed in > 'src/main/java/'. However, according to "Introduction to the Standard > Directory Layout" on the maven website 'src/main/webapp' is for the web > application sources. > > Can someone explain: > 1. The difference between the two directories, i.e. /src/main/webapp & > /src/main/java > 2. Where the source code is supposed to go? > > Thanks. > > -Dan > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
