Maven
  1. Maven
  2. MNG-2216

Add default encodings section to POM

    Details

      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:

      <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.

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Trustin Lee
            • Votes:
              16 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

              • Created:
                Updated:

                Development