About

Jadira Systems is the initiative of Sousan Rassoul and Chris Pheby to produce reusable open source Java modules that provide first class solutions using the most effective current JEE technologies.

Search
Recent Changes
No website changes have been recorded.
Login
« Java Decompiler | Main | Fixing Word 2007 Crashing on 'Save As' and 'Print' »
Monday
Nov162009

Maven: Resource is Platform Dependent

The following error was being emitted by the resources plugin using Maven 2.2.0:

[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!

This warning is a hint to update your pom with an encoding to be used. For example:

<project>
  ...
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    ...
  </properties>
  ...
</project>

This setting is applied across all plugins (in builds of Maven prior to 2.1.0 encoding was required to be set on a per plugin basis).

More details are available here: http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding.

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>