Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Wendy Smoak
On Sun, Sep 28, 2008 at 3:05 PM, Rick <[EMAIL PROTECTED]> wrote: > Ok interesting. Thanks Wendy. I didn't think of creating a separate > module for the web-related java classes. Is this a common practice? I > agree in separation of concerns, but that might be a bit much. In > other words a servlet

Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Thor
I agree with Rick, if you have servlets, filters, even actions (struts, webwork, etc.) i think there is no need to separate the code from your web module (if your views depends on it). Nevertheless, separating the code from the views it's a very elegant approach... If the Eclipse workspace wasn't

Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Graham Leggett
Rick wrote: (Now if Eclipse supported multi-modules better I wouldn't' mind as much. I wish there was a way I could have a project in eclipse represented by the parent pom and then have all the sub modules beneath it. Back when I used IDEA, I think this was possible. Does NetBeans maybe support

Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Rick
On Sun, Sep 28, 2008 at 5:11 PM, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > The archetype is encouraging the best practice of putting the Java > code in a separate module. > > If you need the directories, you can create them. If this is > something you need often, you can create your own archetype

Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Wendy Smoak
On Sun, Sep 28, 2008 at 1:55 PM, Rick <[EMAIL PROTECTED]> wrote: > I'm confused... when I run the maven webapp archetype I only end up > with "resources" and "webapp" directories created.. no java/src/main > or java/src/test ? Shouldn't it make those directories for me? The archetype is encouragin

Re: no main or test directories created when using webapp archetype?

2008-09-28 Thread Rick
I should clarify.. 'main' is created.. just no java directory (or test) is created even when I provide the package declaration with -DpackageName=com.foobar On Sun, Sep 28, 2008 at 4:55 PM, Rick <[EMAIL PROTECTED]> wrote: > I'm confused... when I run the maven webapp archetype I only end up > with

no main or test directories created when using webapp archetype?

2008-09-28 Thread Rick
I'm confused... when I run the maven webapp archetype I only end up with "resources" and "webapp" directories created.. no java/src/main or java/src/test ? Shouldn't it make those directories for me? I tested with the archetype as shown here on the maven2 site: http://maven.apache.org/guides/mini