Okay, you know where those resources should be. Why is it so difficult
to move the resource files to their correct directory?  If you are
using a version control system, and worry about moving files that
other users might be working on, do a copy first, then let everyone
get use to the new place. After that, delete them from the
src/main/java directory. The whole process shouldn't take more than a
day or two.

It is possible to tell Maven to tell Maven to copy those resources
from your src/main/java directory. Clovis has given you the solution,
but one of the advantages of Maven is that there's a standard Maven
way everything works. You know where to find the files because of the
standardized directory structure. Let the developers learn the correct
place where resource files should be stored, so they get use to Maven
and use those job skills on their next assignment.

On Thu, Feb 26, 2009 at 8:11 AM, youhaodeyi <[email protected]> wrote:
>
> I have may XML files in src/main/java directory and its sub directory. When I
> run "mvn compile", these XML files will not be copied to the target/classes
> directory. I know I can put these files in src/main/resources directory but
> it is really hard work for me. How can I let maven do this?
> --
> View this message in context: 
> http://www.nabble.com/How-to-copy-resource-files-to-target-classes-directory--tp22223747p22223747.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
--
David Weintraub
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to