maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Petrelli <antonio.petre...@gmail.com>
Subject Re: How to loose the "/target/..."
Date Tue, 25 Jan 2011 08:55:36 GMT
2011/1/25 martin krüger <brainmade@googlemail.com>:
> currently I try to copy some files with the "maven-resources-plugin". Is
> there any chance to get rid of the "/target/" folder during the copy of
> files? I'm using the following lines:
>
> <resource>
> <filtering>true</filtering>
> <directory>${basedir}/src/site</directory>
> <targetPath>${staging.dir}/bin</targetPath>
>  </resource>
> and it results always in something like /target/myFolder/file.

Strange, it should work. Are you sure your files are under src/site?
Did you try using only:
<directory>src/site</directory>

> Or even better. Is there a chance to loose the whole folder structure during
> the copy action? If the source is something like
> +src
> +-main
> +--a.file
> +--b.file
> +--c.file
> ---> result
> +mytarget
> +-a.file
> +-b.file
> +-c.file

If the resource is correctly configured, this is the way it should work.

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message