title: Generate jar from WSDL using maven
body: <p>I have a plugin in maven script that plugin is using ant file to import wsdl and then generate stubs of that WSDL. Stubs are generating successfully but I want to generate a jar file as well. Here is my plugin</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
              &lt;inherited&gt;false&lt;/inherited&gt;
              &lt;executions&gt;
                    &lt;execution&gt;
                          &lt;id&gt;run_inovoke_wsdlgen&lt;/id&gt;
                          &lt;phase&gt;compile&lt;/phase&gt;
                          &lt;goals&gt;
                                &lt;goal&gt;run&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                                &lt;target name="handle_wsdl_import" description="Handle WSDL Import" &gt;
                                      &lt;ant antfile="C:\Users\chashish\Desktop\yogesh\WsdlImportAnt.xml" target="generate" inheritAll="false" &gt;
                                      &lt;/ant&gt;
                                &lt;/target&gt;
                                &lt;jvmArgs&gt;
                                      &lt;jvmArg&gt;-Xmx1024m&lt;/jvmArg&gt;
                                      &lt;jvmArg&gt;-Xms256m&lt;/jvmArg&gt;
                                &lt;/jvmArgs&gt;
                          &lt;/configuration&gt;
                    &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;dependencies&gt;
                    &lt;dependency&gt;
                          &lt;groupId&gt;com.sun&lt;/groupId&gt;
                          &lt;artifactId&gt;tools&lt;/artifactId&gt;
                          &lt;version&gt;1.7&lt;/version&gt;
                          &lt;scope&gt;system&lt;/scope&gt;
                          &lt;systemPath&gt;${toolsjar}&lt;/systemPath&gt;
                    &lt;/dependency&gt;
              &lt;/dependencies&gt;
        &lt;/plugin&gt;
  </code></pre>
  
  <p>And here is WSDLImport.xml file</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;project name="WSDL2JavaExample" default="generate" basedir="."&gt;
  
      &lt;property name="wsdlurl" value="C:\path_to_service\ScheduleService.wsdl" /&gt;
      &lt;property name="gensrc" value="C:\temp\wsdlimport\" /&gt;
  
      &lt;path id="axis.path"&gt;
          &lt;pathelement location="C:\Users\chashish\workspace\some_jars.jar" /&gt;
          &lt;pathelement location="C:\Users\chashish\workspace\some_jars.jar" /&gt;
          ....
      &lt;/path&gt;
  
      &lt;target name="generate" &gt;
      &lt;java classname="org.apache.axis.wsdl.WSDL2Java" fork="true"&gt;
          &lt;classpath&gt;
          &lt;path refid="axis.path" /&gt;
        &lt;/classpath&gt;
        &lt;arg line="--wrapArrays --output ${gensrc} ${wsdlurl}" /&gt;
      &lt;/java&gt;
      &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Thanks</p>