Hello,

Referring to the Project Descriptor (
http://maven.apache.org/maven-model/maven.html#class_resource),
<targetPath/> is relative to the <outputDirectory/> of the project that's
why it created another target/ inside ${basedir}/target/web-inf/classes/.

Btw, have you tried the webapp archetype?  I think it would make things
easier for you if you follow that.

Please post your pom.xml so we could clarify that.

Cheers!
Nap

On 1/13/06, Karthik V <[EMAIL PROTECTED]> wrote:
>
> I have a war project in m2 and want to copy some resource files to target.
> In my src/main/resources folder, I have some files, along with a web-inf
> folder containing some more files. But maven always seems to copy it to
> target/web-inf/classes and not target. How do I change this behavior?
>
> I tried adding something like
>     <resources>
>         <directory>${basedir}/src/main/resources</directory>
>         <targetPath>target</targetPath>
>       </resource>
>     </resources>
>
>
> but it didnt help... the above copied the files to
> target/web-inf/classes/target.
>
>

Reply via email to