title: Generate a schema for WSDL with HTTP authentication and the maven-jaxb2-plugin
body: <p>I want to use jaxb2 plugin to generate a WSDL accessible from a secure URL (basic authentication with user id and password).</p>
  
  <p>Where should I specify the credentials to generate the schema? Without providing them, I get one 401 error during schema generation.</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt;
      &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt;
      &lt;version&gt;0.13.1&lt;/version&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;configuration&gt;
          &lt;schemaLanguage&gt;WSDL&lt;/schemaLanguage&gt;
          &lt;generatePackage&gt;hello.wsdl&lt;/generatePackage&gt;
          &lt;schemas&gt;
              &lt;schema&gt;
                  &lt;url&gt;http://www.webservicex.com/stockquote.asmx?WSDL&lt;/url&gt;
              &lt;/schema&gt;
          &lt;/schemas&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>