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

Problem creating archetypes from project with a given encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0-alpha-4
    • None
    • Creator
    • None
    • 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. pom.xml.sample
          2 kB
          Javier Diaz
        2. maven-archetype-2.0-alpha-4.patch
          1 kB
          Javier Diaz
        3. archetype-metadata.xml
          5 kB
          Javier Diaz

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: