[ https://jira.codehaus.org/browse/MNG-2216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MNG-2216: ------------------------------- Description: 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: {code:xml}<defaultEncodings> <!-- Default: UTF-8 --> <inputEncoding>UTF-8</inputEncoding> <!-- Will be the same with inputEncoding if not specified. --> <outputEncoding>UTF-8</outputEncoding> </defaultEncodings>{code} 2) Make encoding properties in all plugins to be consistent and deprecate old properties. The default values could be: {noformat]inputEncoding = ${pom.encoding.input} outputEncoding = ${pom.encoding.output}{noformat] so users can override the default settings easily. was: 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. > Add default encodings section to POM > ------------------------------------ > > Key: MNG-2216 > URL: https://jira.codehaus.org/browse/MNG-2216 > Project: Maven 2 & 3 > Issue Type: Improvement > Components: POM::Encoding > Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3 > Reporter: Trustin Lee > Fix For: Issues to be reviewed for 4.x > > 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: > {code:xml}<defaultEncodings> > <!-- Default: UTF-8 --> > <inputEncoding>UTF-8</inputEncoding> > <!-- Will be the same with inputEncoding if not specified. --> > <outputEncoding>UTF-8</outputEncoding> > </defaultEncodings>{code} > 2) Make encoding properties in all plugins to be consistent and deprecate old > properties. The default values could be: > {noformat]inputEncoding = ${pom.encoding.input} > outputEncoding = ${pom.encoding.output}{noformat] > so users can override the default settings easily. -- This message was sent by Atlassian JIRA (v6.1.6#6162)