On 11/7/06, jiangshachina <[EMAIL PROTECTED]> wrote:
With Maven standard directory structure, resources relative to Java source codes are located at src/resources. Now I'm using Hibernate. Generally, a Hibernate xml file directly adheres to its domain Java class.
...
Some developers may not like the approach. Because a package name may be long, then we have to create a long directory structure under src/resources manually. Is there a better way?
You can put resources in with the Java classes if you prefer; you just have to add more configuration to pom.xml to tell Maven about it. See <resources><resource> in the model: http://maven.apache.org/ref/2.0.4/maven-model/maven.html Also note that if you have any resources in the default location of src/main/resources, you'll need to specify that in addition to src/main/java. (Once you specify <resources>, you lose the default.) -- Wendy -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
