You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dennis Lundberg (Jira)" <ji...@apache.org> on 2020/07/29 11:43:00 UTC

[jira] [Commented] (MRESOURCES-264) Parameter addDefaultExcludes with false does not copy .gitignore

    [ https://issues.apache.org/jira/browse/MRESOURCES-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17167155#comment-17167155 ] 

Dennis Lundberg commented on MRESOURCES-264:
--------------------------------------------

Hi,

We have an integration test in place that test this functionality and it is working. Could you please have a look at it and let us know how your project differs from our test?

[https://github.com/apache/maven-resources-plugin/tree/maven-resources-plugin-3.1.0/src/it/include-git-ignore]

Note that the .gitignore files in the integration test are created by the script setup.sh.

> Parameter addDefaultExcludes with false does not copy .gitignore
> ----------------------------------------------------------------
>
>                 Key: MRESOURCES-264
>                 URL: https://issues.apache.org/jira/browse/MRESOURCES-264
>             Project: Maven Resources Plugin
>          Issue Type: Bug
>          Components: copy
>    Affects Versions: 3.1.0
>         Environment: CentOS 7 64bits, OpenJDK 11.0.7, Maven 3.6.3, Maven Archetype Plugin 3.2.0
>            Reporter: Joël Royer
>            Priority: Major
>
> 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:
> {code:java}
> <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>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)