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

DefaultArchetypeArtifactManager not handling slashes correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0-alpha-2
    • Fix Version/s: None
    • Component/s: Creator, Generator
    • Labels:
      None
    • Environment:
      Maven 2.0.8, Windows XP

      Description

      Within the method getFilesetArchetypeResources, the following command is not working as the name of the zipfile entry is "archetype-resources\src\main\java\faults\ExceptionInformation.java"

      String resource =
      StringUtils.replace (
      entry.getName (),
      Constants.ARCHETYPE_RESOURCES + "/",
      ""
      );

      The archetype was created with the create-from-project command.

      I've attached the offending archetype.

      Note: if I package the archetype as a jar instead of a maven-archetype, this isn't problem. That's why I've selected Creator and Generator as affected components as I am not sure why/how the path seperator is set in the jar file.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zach.mabe@cox.com Zach Mabe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: