Here are my suggestions, but YMMV:

You want these to load via a classloader...
src/main/resources/log4j.properties
src/main/resources/hibernate.cfg.xml

These are just webapp content...
src/main/webapp/wherever-you-want-js-files-in-your-webapp/*.js
src/main/webapp/wherever-you-want-image-files-in-your-webapp/*.jpg, etc.

These will load as resources relative to your webapp (really just more webapp content, but with "standard" locations)...
src/main/webapp/WEB-INF/struts-config.xml
src/main/webapp/WEB-INF/springapp-servlet.xml

For the shell scripts, it depends on what they do. And even then, there may not be a convention. Do they start an app (look where the 'mvn' script is in the maven source tree), start a server, get executed by your app in the background?

src/site is for the project web site that maven can create and publish for you. It is NOT for sources that comprise your application's webapp.

-Max

wolverine my wrote:
Hi!

We have a plan to migrate from Ant to Maven in the future. Until then,
we would like to start our project using Ant but following the Maven's
standard directory layout (see
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html).

However, we still have a couple of questions regarding the directory layout:

Which directory the log4j.properties, hibernate.cfg.xml,
struts-config.xml, springapp-servlet.xml and other application
specific configuration files should be saved? src/main/config looks
like the appropriate directory for these files but I also seen these
files in src/main/resources and src/main/webapp.

Which directory the Javascript files (*.js) should be saved?

Which directory the Unix shell script (*.ksh, *.sh) should be saved?

Which directory the images and pictures (*.jpg, *.bmp) should be saved?

What does the src/site directory contains?

I would like to suggest that in the "Introduction to the Standard
Directory Layout" chapter, it would be very useful to describe and
give examples of where the well-known files are saved in the Maven's
directories.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to