title: How to build specific folder in maven?
body: <p>I have a folder myApp1 and pom.xml is lying inside myApp1. Here is the hirerchy of myApp1</p>
  
  <pre><code>myAppl1
    |--src
         |--main
               |--java 
                 (Java Source Code)
               |--resources
                 some xml files and doc files 
    |--pom.xml
  </code></pre>
  
  <p>Now if i do mvn package it build all the folders and makes jar files(basically it  puts also all the files under resources folder in jar file).</p>
  
  <p>What i want is to build the files under java folder only which does not have any dependency on resources folder(java files dependencies are mentioned in POM file which are jars in repository).</p>
  
  <p>I am not sure how we can build the specific folder in maven. I tried this mvn install -pl src\main\java -am but says Could not find the selected project in the reactor?</p>
  
  <p><strong>EDIT</strong> This is how i had put it in pom.xml before </p>
  
  <pre><code>&lt;pluginManagement&gt;
     &lt;plugins&gt;
  &lt;plugin&gt; 
          &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt; 
          &lt;version&gt;${maven-jar-plugin.version}&lt;/version&gt; 
          &lt;configuration&gt; 
              &lt;verbose&gt;true&lt;/verbose&gt; 
              &lt;excludes&gt; 
                  &lt;exclude&gt;resources/*&lt;/exclude&gt; 
                  &lt;exclude&gt;webapp/*&lt;/exclude&gt;                     
              &lt;/excludes&gt; 
          &lt;/configuration&gt; 
  &lt;/plugin&gt; 
  &lt;/plugins&gt;
   &lt;/pluginManagement&gt;
  </code></pre>
  
  <p></p>
  
  <p>But i get [ERROR]     Malformed POM C:\myProject\pom.xml: Unrecognised tag: 'pluginMana
  gement' (position: START_TAG seen ...\r\n\r\n  
  ... @55:21)  @ C:\myProject\pom.xml, line 55, column 21 -> [Help 2]</p>