Hi,
Now, I use
<resource>
<directory>src/main/java</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
I make Mavne to regard src/main/java as resources dir, too.
But have to exclude Java source files.
a cup of Java, cheers!
Sha Jiang
Wendy Smoak-3 wrote:
>
> 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]
>
>
>
--
View this message in context:
http://www.nabble.com/Java-Source-and-Resource-tf2592856s177.html#a7232206
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]