[ajug-members] Java EE default project layout
David Carter
david at carter.net
Sun Feb 5 08:29:34 EST 2006
On 2/4/06, Burr Sutter <burrsutter at gmail.com> wrote:
> Let's say that I am new to Java EE development and I've been looking at
> books and tutorials and they have instructed me on how to build the EAR and
> WAR directory. What is the proper way to layout the project directory
> structure (src, bin, WEB-INF, webcontent/docroot, classes, lib, etc.) and
> are there any default Ant scripts for managing my WARs and EARs?
>
> I've looked at a number of different documents, tutorials, etc. over the
> last week and almost all of them have a unique approach. I'm looking for
> "the way" to setup my project so that my source files don't live in the same
> directory as my class files and that a deployable WAR structure (and EAR)
> can easily be created.
>
Many open-source projects are moving to Maven as a build tool rather
than Ant. Maven "strongly encourages" a standardized directory
structure, which is just one of Maven's benefits for cross-project
consistency. You can find Maven's recommended directory structure
here:
http://maven.apache.org/reference/conventions.html
"Maven - A Developer's Notebook" is an excellent introductory book.
More information about the ajug-members
mailing list