title: Error when using javac: "javac: invalid flag: -s"
body: <p>I am trying to specify another version of JDK in <code>maven-compiler-plugin</code>. When <code>-target</code> and <code>-source</code> parameters are set to 1.5, everything is ok. But when i try to use 1.6 JDK, maven reports an error. Has anyone faced this problem?</p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Failure executing javac, but could not parse the error:
    javac: invalid flag: -s
    Usage: javac  
    where possible options include:
    -g                         Generate all debugging info
    -g:none                    Generate no debugging info</p>
  </blockquote>
  
  <p>Thanks.</p>