[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:
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
On Sat, 4 Feb 2006 23:41:05 -0500, "Burr Sutter" <burrsutter at gmail.com>
> Hello AJUGers,
> I have a question and I'm hoping that ya'll either have some answers or
> 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
> 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
> 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
> nice to a default project/build environment for training new developers
> if you move from project to project have the same basic "layout"?
More information about the ajug-members