title: Build only one Module instead of dependent modules in maven
body: <p>I have a project say &quot;MyProject&quot;. It's having 3 modules 'A','B' and 'C'. And I want to build only 'A' module.
  The below command is working perfectly.
  <code> mvn -pl A clean install</code>.
  But my problem is &quot;Module-B is using Module-A&quot; in B's pom.xml. Below is the example.
  B's pom.xml:</p>
  <pre><code> &lt;dependency&gt;
          &lt;groupId&gt;com.myproject&lt;/groupId&gt;
          &lt;artifactId&gt;ModuleA&lt;/artifactId&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
  </code></pre>
  
  <p>And I don't want to build Module-B even though it's using Module-A.
  Please help.</p>