Hi,
I seem to just can't figure out how i can copy files from an arbitrary
location to an arbitrary location.
I have some XML schema files in my source directory and since i'm using
these as source they clearly don't fit in the resource directory. so i
guess to have them automatically copied
Hi,
no need to configure the resource plugin to add additional resources.
Just add a new resource specification to your pom like this:
project
build
resources
resource
targetPathmydir/targetPath
directorysrc/main/xsd/directory
/resource
/resources
hi,
hmm, either i'm stupid or i spelled something wrong, cause when i tried
this last time, maven told me that's an incorrect pom according to the
schema.
let's try with copypaste this time ;)
thanks though
cheers,
severin
Tim Kettler wrote:
Hi,
no need to configure the resource plugin
The problem I ran into with this is that targetPath is relative to the
classes directory for jar and war packing types. So if you want your xml
files to go anywhere else Maven is just going to be way too helpful and
not let you. I gave up and used an ant task for copying. If there is a
way
hi,
well the targetPath was actually all that i needed. i couldn't find that
one anywhere in the resource plugin page, might be worth adding it
somewhere (e.g. in the examples)
cheers,
severin
Paul Copeland wrote:
The problem I ran into with this is that targetPath is relative to the
On 7/8/07, Severin Ecker [EMAIL PROTECTED] wrote:
I seem to just can't figure out how i can copy files from an arbitrary
location to an arbitrary location.
I think most people use the antrun plugin and a 'copy' task for that.
By convention, resources belong in src/main/resources and get