title: Avoid use of deprecated methods in org.eclipse.jetty.server.ssl.SslSocketConnector with jetty-maven-plugin
body: <p>Releated to</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/8359429/deprecated-embedded-jetty-7-6-using-ssl">Deprecated Embedded Jetty 7.6 using SSL</a></li>
  <li><a href="https://stackoverflow.com/questions/5220651/jetty-sslconnectors-deprecated-methods">Jetty SslConnector&#39;s deprecated methods</a></li>
  </ul>
  
  <p>How to write correct Maven POM without using the deprecated methods / tags in connector like <em>needClientAuth</em> or <em>keystore</em>?</p>
  
  <p>Example with deprecated method use:</p>
  
  <pre><code>      &lt;plugin&gt;
          &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
          &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
          &lt;!-- see http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin --&gt;
          &lt;version&gt;8.0.4.v20111024&lt;/version&gt;
          &lt;!-- see http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.mortbay.jetty%22%20AND%20a%3A%22jetty-maven-plugin%22 --&gt;
          &lt;dependencies&gt;
            &lt;!--[...]--&gt;
          &lt;/dependencies&gt;
          &lt;configuration&gt;
            &lt;webAppXml&gt;src/main/resources/jetty-Login.xml&lt;/webAppXml&gt;
            &lt;scanIntervalSeconds&gt;5&lt;/scanIntervalSeconds&gt;
            &lt;webAppConfig&gt;
              &lt;contextPath&gt;/MyApp&lt;/contextPath&gt;
            &lt;/webAppConfig&gt;
            &lt;connectors&gt;
              &lt;connector implementation="org.eclipse.jetty.server.bio.SocketConnector"&gt;
                  &lt;port&gt;8080&lt;/port&gt;
              &lt;/connector&gt;
              &lt;connector implementation="org.eclipse.jetty.server.ssl.SslSocketConnector"&gt;
                  &lt;port&gt;8443&lt;/port&gt;
                  &lt;password&gt;changeit&lt;/password&gt;
                  &lt;wantClientAuth&gt;true&lt;/wantClientAuth&gt;&lt;!-- deprecated! --&gt;
                  &lt;needClientAuth&gt;false&lt;/needClientAuth&gt;&lt;!-- deprecated! --&gt;
                  &lt;keystore&gt;/my/path/to/java/keystore&lt;/keystore&gt;&lt;!-- deprecated! --&gt;
              &lt;/connector&gt;
            &lt;/connectors&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
  </code></pre>