Doesn't work. A resource cannot specify the encoding, only the
resource plugin can. I've googled this but haven't found anything
useful. Strangely, I haven't had any problems with the
encoding-unaware setup even though in theory I should have had
problems. I have XML files in UTF-8 and Java property files are by
default in ISO-8859-1. Some of these files have accented letters that
typically cause lots of problems. I thought I should configure Maven
to copy the two sets of resources using their respective encodings to
avoid any potential problems in the future, but I haven't discovered a
way (if it exists). I am actually a bit surprised that such a basic
thing is not built into Maven. I would expect to be able to specify
the encoding per resource.
Cheers,
Alex
On Tue, Dec 30, 2008 at 4:04 AM, Wayne Fay wrote:
>
> > Ok, I defined two different executions of the resource plugin, gave them
> > different IDs but how can I control which one is executed for each
> > individual resource? They should be executed in the same phase and for the
> > same goal.
>
> You'd need to create:
> /src/main/resources/utf8
> /src/main/resources/iso88591
>
> And then configure each instance pointing to the proper directory...
> or something along those lines.
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org