Now fixed a bug in the maven-resources plugin.
To include the .gitignore file, the maven-resources-plugin must be installed explicitly in the archetype pom.xml file with the addDefaultExcludes configuration addDefaultExcludes set to false :
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.0.2</version> <configuration> <addDefaultExcludes>false</addDefaultExcludes> </configuration> </plugin>
source share