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

Files in excludePatterns having a default filtered extension are still included

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 3.0.0
    • None
    • None

    Description

      In the following attached project, we have the following file structure:

      archetype.properties
      pom.xml
      src
      └───main
          └───resources
              │   file.txt
              │
              └───.sonar
                      file.txt
      

      The use of excludePatterns=**/.sonar/** inside the archetype.properties still results in the creation of the folder src/main/resources/.sonar in the generated archetype.

      Running mvn clean archetype:create-from-project -Darchetype.properties=archetype.properties results in the following generated structure inside target\generated-sources\archetype\src\main\resources\archetype-resources:

      pom.xml
      src
      └───main
          └───resources
              │   file.txt
              │
              └───.sonar
                      file.txt
      

      The .sonar folder is still present, when it should have been excluded.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gboue Guillaume Boué
            gboue Guillaume Boué
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment