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

.gitignore file is not copied to archetype JAR

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.2, 2.3
    • Fix Version/s: None
    • Component/s: Creator
    • Labels:
      None

      Description

      In the file src/main/resources/META-INF/maven/archetype-metadata.xml, I have something like this:

          ...
          <fileSets>
              <fileSet filtered="false" packaged="false">
                  <directory/>
                  <includes>
                      <include>.*ignore</include>
                  </includes>
              </fileSet>
          </fileSets>
          ...
      

      In the directory src/main/resources/archetype-resources, there are two files .gitignore and .hgignore. Now when I create the archetype from the resources, only the .hgignore file gets copied into the archetype, but not the .gitignore file.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              christians Christian Schlichtherle
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: