title: SSL client certificate in Maven
body: <p>I use the "maven-jaxb22-plugin" to generate classes so I can call a web service written in .Net. Usually it works fine but this time, I can only access the WSDL using a client certificate through HTTPS (not available through HTTP). </p>
  
  <p>I was able to make it work with SoapUI. I added the client certificate into a JKS keystore and added it to the SoapUI preferences. Then I created a new project by specifying the URL which looks like this: <strong><a href="https://server.com/Service?wsdl" rel="nofollow">https://server.com/Service?wsdl</a></strong>. SoapUI generated the request template. I was easily able to query the web service and get a response. So this prove that the WSDL is available and the web service is working.</p>
  
  <p>Now, in my pom file, I am using this plugin:</p>
  
  <pre><code>&lt;build&gt;
      &lt;finalName&gt;MyService&lt;/finalName&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.1&lt;/version&gt;
              &lt;configuration&gt;
                &lt;source&gt;1.7&lt;/source&gt;
                &lt;target&gt;1.7&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;           
          &lt;plugin&gt;
              &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt;
              &lt;artifactId&gt;maven-jaxb22-plugin&lt;/artifactId&gt;
              &lt;version&gt;0.8.3&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;extension&gt;true&lt;/extension&gt;
                  &lt;removeOldOutput&gt;true&lt;/removeOldOutput&gt;
                  &lt;schemaLanguage&gt;WSDL&lt;/schemaLanguage&gt;
                  &lt;verbose&gt;true&lt;/verbose&gt;
                  &lt;schemaIncludes&gt;
                      &lt;includeSchema&gt;https://server.com/Service?wsdl&lt;/includeSchema&gt;
                  &lt;/schemaIncludes&gt;
              &lt;/configuration&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;  
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>How can I tell Maven where my client certificate is?</p>
  
  <p>Thanks</p>