Hello,
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.
For example,
src
|--java
|--myapp
|--demo
|--model
|--hibernate
|--Dog.java
|--Dog.hbm.xml
But when run "mvn compile", Maven would miss the xml file, non-Java source
file.
Maven recommends following structure,
src
|--java
|--myapp
|--demo
|--model
|--hibernate
|--Dog.java
|--resources
|--myapp
|--demo
|--model
|--hibernate
|--Dog.hbm.xml
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?
Thanks!
a cup of Java, cheers!
Sha Jiang
--
View this message in context:
http://www.nabble.com/Java-Source-and-Resource-tf2592856s177.html#a7231544
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]