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

DefaultArchetypeArtifactManager not handling slashes correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.0-alpha-2
    • None
    • Creator, Generator
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: