title: Add dependency according to the given condition in Maven
body: <p>Is there a way I can set up dependancies according to a given condition when I buid the maven project.</p>
  
  <pre><code>mvn package someCondition
  </code></pre>
  
  <p>So if I say <strong>mvn install A</strong> it should add one dependancy and if a say <strong>mvn install B</strong> it should add another type of dependancy.</p>
  
  <p>Please help. Thank You</p>
  
  <p>P.S. Is there a way I can do this by creating multiple profiles?</p>