> So, if I understand correctly for 'jar' projects the source code goes
> in the src/main/java directory, while in webapps the source code
> (such as jsps, servlets, daos, models, etc.) go into the src/main/webapp
>directory.

The "only" thing that "should" go in webapp is jsps, in my opinion.
The rest (including servlets) goes in src/main/java and is included as
a dependency (of type jar) to the war. And obviously the daos, models
etc go in src/main/java too.

> Not to be belabor the question, but why in "Maven by Example" is the
> source code for the simple servlet in the src/main/java directory?

This is how I'd suggest doing it as well.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to