Hi Robert, > -----Original Message----- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: samedi 22 octobre 2005 14:03 > To: [email protected] > Subject: Where should configuration files go? > > Greetings, > > I'm a recent Ant-to-Maven 2.0 convert and am trying to "mavenize" some > existing greenfield projects. > > In the past I have usually kept my Hibernate *.hbm.xml files in the same > directory as their corresponding .java files because it facilitates > referencing. Should I still keep them there, or move them to the > /resources directory? Personally, I'ld like to keep them close to their > corresponding .java file.
You should move them in the resources directory but you can keep the same package. The notion of "close" is subjective. They can be in a different directory and still be close in your IDE view for example. > For testing, should I place files like log4j.properties, > *-applicationContext.xml (Spring) files, and other configuration type > files under the /test/resources directory? Exactly. Note that those files will need to be accessed using the classpath as described on http://maven.apache.org/guides/getting-started/index.html#How%20do%20add%20r esources%20to%20my%20JAR? -Vincent --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
