You could over ride your resources directory in your pom.xml:
<resources>
<!-- Log4j.xml etc -->
<resource>
<directory>${basedir}/src/main/java</directory>
</resource>
<!-- Or you could use the following example: -->
<resource>
<targetPath>path/to/destination/</targetPath>
<directory>${basedir}/src/main/java/ </directory>
<includes>
<include>**.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
-----Original Message-----
From: youhaodeyi [mailto:[email protected]]
Sent: 26 February 2009 13:12
To: [email protected]
Subject: How to copy resource files to target/classes directory?
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]
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3891 (20090226) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3891 (20090226) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]