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.

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

        Activity

        Hide
        hudson Hudson added a comment -

        FAILURE: Integrated in Jenkins build maven-archetype-m3 #238 (See https://builds.apache.org/job/maven-archetype-m3/238/)
        ARCHETYPE-513 Files in excludePatterns having a default filtered (gboue: rev 44e7ed6329320ae6b009bf3415b0e615770a110e)

        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/resources/file.txt
        • (add) archetype-testing/archetype-final/src/test/resources/projects/exclude-patterns-2/folder/file.txt
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/resources/toexclude/file.txt
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/toexclude/file.txt
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/resources/toexclude/file.xml
        • (add) archetype-testing/archetype-final/src/test/resources/projects/exclude-patterns-2/pom.xml.sample
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/invoker.properties
        • (add) archetype-testing/archetype-final/src/test/resources/projects/exclude-patterns-2/.sonar/file.txt
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/toexclude/file.txt
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/pom.xml
        • (add) archetype-testing/archetype-final/src/test/resources/projects/exclude-patterns-2/folder/.sonar/file.txt
        • (edit) archetype-testing/archetype-final/src/test/java/org/apache/maven/archetype/creator/DefaultArchetypeCreatorTest.java
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/toexclude/file.xml
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/verify.bsh
        • (edit) archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/toexclude/file.txt
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/toexclude/file.xml
        • (add) archetype-testing/archetype-final/src/test/resources/projects/exclude-patterns-2/archetype.properties.sample
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/archetype.properties
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/resources/file.xml
        • (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/toexclude/file.xml
        Show
        hudson Hudson added a comment - FAILURE: Integrated in Jenkins build maven-archetype-m3 #238 (See https://builds.apache.org/job/maven-archetype-m3/238/ ) ARCHETYPE-513 Files in excludePatterns having a default filtered (gboue: rev 44e7ed6329320ae6b009bf3415b0e615770a110e) (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/resources/file.txt (add) archetype-testing/archetype-final/src/test/resources/projects/exclude-patterns-2/folder/file.txt (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/resources/toexclude/file.txt (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/toexclude/file.txt (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/resources/toexclude/file.xml (add) archetype-testing/archetype-final/src/test/resources/projects/exclude-patterns-2/pom.xml.sample (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/invoker.properties (add) archetype-testing/archetype-final/src/test/resources/projects/exclude-patterns-2/.sonar/file.txt (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/toexclude/file.txt (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/pom.xml (add) archetype-testing/archetype-final/src/test/resources/projects/exclude-patterns-2/folder/.sonar/file.txt (edit) archetype-testing/archetype-final/src/test/java/org/apache/maven/archetype/creator/DefaultArchetypeCreatorTest.java (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/toexclude/file.xml (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/verify.bsh (edit) archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/toexclude/file.txt (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/toexclude/file.xml (add) archetype-testing/archetype-final/src/test/resources/projects/exclude-patterns-2/archetype.properties.sample (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/archetype.properties (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/resources/file.xml (add) archetype-testing/archetype-final/src/it/create-from-project-exclude-patterns/src/main/toexclude/file.xml
        Hide
        gboue Guillaume Boué added a comment -
        Show
        gboue Guillaume Boué added a comment - Fixed in 44e7ed6329320ae6b009bf3415b0e615770a110e .

          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:

              Development