title: Maven: extract files from jar
body: <p>I'm developing a client application of a WebService and I have the corresponding WSDL file inside a jar.</p>
  
  <p>I'm using ant to generate the java code from the wsdl with the following build.xml:</p>
  
  <pre><code>&lt;project name="wsimport" default="wsimport" basedir="."&gt;
  &lt;taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport" /&gt;
  
    &lt;target name="wsimport"&gt;
       &lt;echo message="Starting wsimport"/&gt;
       &lt;mkdir dir="target/generated-sources/jaxws-wsimport"/&gt;
       &lt;wsimport
          wsdl="???"
          sourcedestdir="target/generated-sources/jaxws-wsimport"
          extension="true"
          verbose="true"
          target="2.0"
          xnocompile="true"
          catalog="src/jax-ws-catalog.xml"
          wsdlLocation="/MyWebService/MyWebServiceV1_0?wsdl"&gt;
          &lt;binding dir="src/main/resources/bindings/v1_0" includes="*.xml"/&gt;
          &lt;xjcarg value="-XhashCode"/&gt;
          &lt;xjcarg value="-Xequals"/&gt;
          &lt;xjcarg value="-XtoString"/&gt;
       &lt;/wsimport&gt;
  
     &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>How do I load the WSDL file from a jar? The WSDL references an XSD which is also in the same jar.</p>