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

Files in excludePatterns having a default filtered extension are still included

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
      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

        1. ARCHETYPE-513.zip
          4 kB
          Guillaume Boué

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: