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

There is no way to include .gitignore files for the jar goal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.1
    • Plugin
    • None
    • CentOS 7 64bits, OpenJDK 11.0.7, Maven 3.6.3, Maven Archetype Plugin 3.2.0

    Description

      In a Maven archetype, I'm using the resource plugin to copy some files like a .gitignore template. But this file is not copied when I generate a project from this artefact.

      Here is my config for the resource plugin in my artefact:

      <plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-resources-plugin</artifactId>
       <version>3.1.0</version>
       <configuration>
        <!-- Required so that .gitignore gets included in archetypes -->
        <!-- See https://issues.apache.org/jira/browse/MRESOURCES-190 -->
        <addDefaultExcludes>false</addDefaultExcludes>
       </configuration>
      </plugin>
      

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              joelroyer Joël Royer
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: