title: Maven archetype generation does not include files from archetype-resources
body: <p>I'm creating a <a href="https://maven.apache.org/guides/mini/guide-creating-archetypes.html" rel="nofollow noreferrer">maven archetype</a> but when I generate a project with this archetype the sources are empty.</p>
  
  <p>Is there something missing? </p>
  
  <p>Is there any simple archetype to start with? I tried maven-archetypes but every project inherits from a parent artifactId maven-archetype-bundles.</p>
  
  <p><strong>Maven archetype</strong></p>
  
  <pre><code>base-archetype
    -src
      -main
        -java
        -resources
          -archetype-resources
            -resources
              -META-INF
                messages.properties
            -webapp
              -WEB-INF
                beans.xml
            pom.xml(b)
          -META-INF
            -maven
              archetype-metadata.xml
      -test
    -target
    pom.xml(a)
  </code></pre>
  
  <p><strong>pom.xml(a)</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.javalabs&lt;/groupId&gt;
      &lt;artifactId&gt;simple-archetype&lt;/artifactId&gt;
      &lt;version&gt;0.0.1&lt;/version&gt;
      &lt;packaging&gt;maven-archetype&lt;/packaging&gt;
  ...    
  
      &lt;build&gt;
          &lt;extensions&gt;
              &lt;extension&gt;
                  &lt;groupId&gt;org.apache.maven.archetype&lt;/groupId&gt;
                  &lt;artifactId&gt;archetype-packaging&lt;/artifactId&gt;
                  &lt;version&gt;3.1.2&lt;/version&gt;
              &lt;/extension&gt;
          &lt;/extensions&gt;
  
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;plugin&gt;
                      &lt;artifactId&gt;maven-archetype-plugin&lt;/artifactId&gt;
                      &lt;version&gt;3.0.1&lt;/version&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
  
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.0.1&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;attach-sources&lt;/id&gt;
                          &lt;phase&gt;verify&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;jar-no-fork&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-gpg-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.6&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;sign-artifacts&lt;/id&gt;
                          &lt;phase&gt;verify&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;sign&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
              ...
          &lt;/plugins&gt;
      &lt;/build&gt;
      ...
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>archetype-metadata.xml</strong></p>
  
  <pre><code>&lt;archetype-descriptor
          xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0
          http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
          xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          name="jakartaee-essentials-archetype"&gt;
  
      &lt;fileSets&gt;
          &lt;fileSet filtered="true" packaged="true" encoding="UTF-8"&gt;
              &lt;directory&gt;src/main/java&lt;/directory&gt;
              &lt;includes&gt;
                  &lt;include&gt;**/*.java&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/fileSet&gt;
  
          &lt;fileSet filtered="true" packaged="true" encoding="UTF-8"&gt;
              &lt;directory&gt;src/main/resources&lt;/directory&gt;
              &lt;includes&gt;
                  &lt;include&gt;**/*.xml&lt;/include&gt;
                  &lt;include&gt;**/*.properties&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/fileSet&gt;
  
          &lt;fileSet filtered="true" packaged="false" encoding="UTF-8"&gt;
              &lt;directory&gt;src/main/webapp&lt;/directory&gt;
              &lt;includes&gt;
                  &lt;include&gt;**/*.xml&lt;/include&gt;
                  &lt;include&gt;**/*.properties&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/fileSet&gt;
  
          &lt;fileSet&gt;
              &lt;directory&gt;src/test/java&lt;/directory&gt;
          &lt;/fileSet&gt;
  
          &lt;fileSet filtered="false" packaged="false" encoding="UTF-8"&gt;
              &lt;directory&gt;&lt;/directory&gt;
              &lt;includes&gt;
                  &lt;include&gt;.gitignore&lt;/include&gt;
              &lt;/includes&gt;
          &lt;/fileSet&gt;
      &lt;/fileSets&gt;
  
  &lt;/archetype-descriptor&gt;
  </code></pre>