Package structure for a Java project?

mawaldne picture mawaldne · Oct 17, 2008 · Viewed 161.4k times · Source

Whats the best practice for setting up package structures in a Java Web Application?

How would you setup your src, unit test code, etc?

Answer

johnstok picture johnstok · Oct 17, 2008

You could follow maven's standard project layout. You don't have to actually use maven, but it would make the transition easier in the future (if necessary). Plus, other developers will be used to seeing that layout, since many open source projects are layed out this way,