title: Generating WSDL2Java from Maven with CXF
body: <p>For e.g. I have cxf-codegen-plugin like this:</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
              &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt;
              &lt;version&gt;${cxf.version}&lt;/version&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
                      &lt;artifactId&gt;cxf-rt-bindings-soap&lt;/artifactId&gt;
                      &lt;version&gt;${cxf.version}&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;generate-jaxb&lt;/id&gt;
                      &lt;phase&gt;generate-sources&lt;/phase&gt;
                      &lt;configuration&gt;
                          &lt;additionalJvmArgs&gt;-Dfile.encoding=UTF8&lt;/additionalJvmArgs&gt;
                          &lt;wsdlOptions&gt;
                              &lt;wsdlOption&gt;
                                  &lt;wsdl&gt;src/main/resources/wsdl/MyWsdl.wsdl&lt;/wsdl&gt;
                                  &lt;extraargs&gt;
                                      &lt;extraarg&gt;-wsdlLocation&lt;/extraarg&gt;
                                      &lt;extraarg&gt;&lt;/extraarg&gt;
                                      &lt;extraarg&gt;-client&lt;/extraarg&gt;
                                  &lt;/extraargs&gt;
                              &lt;/wsdlOption&gt;
                          &lt;/wsdlOptions&gt;
                      &lt;/configuration&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;wsdl2java&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>It is working just fine when my WSDl is stored in my local project:</p>
  
  <pre><code>src/main/resources/wsdl/MyWsdl.wsdl
  </code></pre>
  
  <p>What I am trying to achieve is to download the WSDL from remote Maven repository and pass it somehow to the <code>&lt;wsdl&gt;</code> element.</p>
  
  <p>Something like:</p>
  
  <pre><code>&lt;wsdl&gt;
   &lt;dependency&gt;...&lt;/dependency&gt;
  &lt;/wsdl&gt;
  </code></pre>
  
  <p>I can't find any information about how to do this. Does the option like this even exists? Or it should be done somehow differently then trying to pass the WSDL in the <code>&lt;wsdl&gt;</code> element?</p>
  
  <p>Please advice.</p>