On 12/4/06, Aaron Digulla <[EMAIL PROTECTED]> wrote:
Is there a simple way to have the resources next to the Java classes (ie. in src/main/java)? When developing with Hibernate, it's tedious to switch back and forth between the directories. I've checked the docs for the plugin but there is no example to do this. This made me think it might be dangerous to do (side effects, etc).
If you prefer to keep your non-Java resources under src/main/java, then use <resources> to pick them up. This pom has an example: http://svn.apache.org/repos/asf/struts/struts1/trunk/core/pom.xml You can also do it by adding a <resource> for src/main/java and excluding **/*.java to get everything but the Java sources. (That might pick up Javadoc package summaries, though.) The only thing to keep in mind is that once you specify any <resources>, you're responsible for specifying *all* of them. (For example, the 'default' of src/main/resources has to be stated explicitly in addition to anything under src/main/java.) -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
