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

.gitignore file is not copied to archetype JAR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.2, 2.3
    • None
    • Creator
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: