You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/03/08 12:31:29 UTC

[jira] Commented: (MNG-2216) Add default encodings section to POM

    [ http://jira.codehaus.org/browse/MNG-2216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126567 ] 

Benjamin Bentmann commented on MNG-2216:
----------------------------------------

There exists a related user proposal at http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding.

> Add default encodings section to POM
> ------------------------------------
>
>                 Key: MNG-2216
>                 URL: http://jira.codehaus.org/browse/MNG-2216
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: POM::Encoding
>    Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3
>            Reporter: Trustin Lee
>             Fix For: 2.1
>
>         Attachments: example-pom.xml
>
>
> Look at the attached example POM.
> Do you see many duplicate configuration properties ('UTF-8') in it?  and the names of properties are very inconsistent.
> It would be great if:
> 1) Add a global section which specifies default encodings:
> <defaultEncodings>
>     <!-- Default: UTF-8 -->
>     <inputEncoding>UTF-8</inputEncoding>
>     <!-- Will be the same with inputEncoding if not specified. -->
>     <outputEncoding>UTF-8</outputEncoding>
> </defaultEncodings>
> 2) Make encoding properties in all plugins to be consistent and deprecate old properties.  The default values could be:
> inputEncoding = ${pom.encoding.input}
> outputEncoding = ${pom.encoding.output}
> so users can override the default settings easily.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira