Hi,

I am using a default maven project layout:

src/resources/images <!-- jpg files -->
src/resources/styles <!-- css files -->

using the tomcat plugin which uses the resources plugin, it puts those files
into this war structure: (
http://maven.apache.org/plugins/maven-war-plugin/usage.html ):

`-- WEB-INF
     `-- classes
         |-- com
         |   `-- ideal
         |       `-- projects
         |           `-- SampleAction.class
         `-- images
             `-- sampleimage.jpg
         `-- styles
             `-- basic.css


Don't you think that's weird?! how can I access files under
WEB-INF/classes?!
I tried:  <link href="classes/styles/basic.css" (eventhough I don't like the
structure) -
but this didn't work.

So in short, my questions are:
1. where should my images, css, javascript and so on be - under /, WEB-INF,
or WEB-INF/classes.
If under WEB-INF/classes, how can I access them there?
2. How can I change Maven so that it puts the files where they should be?

Thanks in advance,

Peter ( really confused... ;-)

Reply via email to