Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-379

Problem creating archetypes from project with a given encoding

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-alpha-4
    • Fix Version/s: None
    • Component/s: Creator
    • Labels:
      None
    • Flags:
      Patch

      Description

      I'm trying to create and archetype from a project using a default encoding different from UTF-8. As states in the plugin page the option defaultEncoding could be used for that purpose but after configuring my pom and executing the command, the file archetype-metada.xml still uses UTF-8. Attached can be found the pom file I'm using and the resulting archetype-metada.xml.

      I've detected that the property defaultEncoding is not been used in the class CreateArchetypeFromProjectMojo. Maybe that's the cause of the problem.

      Attached can be found a patch for version 2.0-alpha-4 but I think the solution is the same for version 2.0.

        Attachments

        1. maven-archetype-2.0-alpha-4.patch
          1 kB
          Javier Diaz
        2. archetype-metadata.xml
          5 kB
          Javier Diaz
        3. pom.xml.sample
          2 kB
          Javier Diaz

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jdiazch Javier Diaz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: