title: Java Apache CLI OptionBuilder not working as Builder pattern
body: <p>I want to do something like </p>
  
  <pre class="lang-java prettyprint-override"><code>public static final Option job1 =
      OptionBuilder.hasArg(false)
          .isRequired(false)
          .withDescription("description of job1")
          .create(JOB1);
  </code></pre>
  
  <p>as mentioned <a href="https://stackoverflow.com/questions/9304431/how-to-specify-multiple-options-using-apache-commons-cli">How to specify multiple options using apache commons cli?</a></p>
  
  <p>I am using maven dependency as </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;dependency&gt;
      &lt;groupId&gt;commons-cli&lt;/groupId&gt;
      &lt;artifactId&gt;commons-cli&lt;/artifactId&gt;
      &lt;version&gt;1.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>as mentioned here - <a href="http://mvnrepository.com/artifact/commons-cli/commons-cli/1.1" rel="nofollow noreferrer">http://mvnrepository.com/artifact/commons-cli/commons-cli/1.1</a></p>
  
  <p>But I am not able to, compiler complains</p>
  
  <p><code>static member org.apache.commons.cli.OptionsBuilder.create() accessed via instance reference</code></p>
  
  <p>, I even tried with <code>&lt;version&gt;1.2&lt;/version&gt;</code>, but no luck, am I missing something?</p>