[ajug-members] Java EE default project layout

Les A. Hazlewood les at hazlewood.com
Sun Feb 5 00:45:03 EST 2006


Bias disclosure:  I wrote the following article:

http://www.onjava.com/pub/a/onjava/2005/06/22/modularant.html

We use this set-up for _all_ of our projects at work, from simple RAD
web-app to large scale enterprise app.  Your questions are really why I
wrote the article - something for my teams to use as a reference as well
as to benefit others.  It has been very successful over time in that I
haven't yet had to rework its structure, regardless of project size or
deployment environment - client/server, web-app, 3rd party integration,
etc.  IMO, that is the true test of a solid project environment -
resilience and reuse over time.

For the sake of brevity, I couldn't include everything about the
environment in that article - some things specific to web apps had to be
left out, but I could easily add them back in.  I am definitely
interested in participating in a JSR if folks want to go down that
road...

Regards,

Les

On Sat, 4 Feb 2006 23:41:05 -0500, "Burr Sutter" <burrsutter at gmail.com>
said:
> Hello AJUGers,
> 
> I have a question and I'm hoping that ya'll either have some answers or
> can
> at least validate my thinking.
> 
> 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.
> 
> What do you think?
> 
> And should this be something addressed by a JSR within the JCP?  Would it
> be
> nice to a default project/build environment for training new developers
> or
> if you move from project to project have the same basic "layout"?
> 
> 
> Burr



More information about the ajug-members mailing list