title: How to upload the stub.jar generated by spring cloud contract
body: <p>I've been using Spring Cloud Contract to test the Producer Side. And now, I wanted to upload the stub.jar file to nexus, so my colleague could write some integration test against my producer. And I found the Spring Documentation hard to follow.</p>
  
  <pre><code>    &lt;!-- First disable the default jar setup in the properties section--&gt;
      &lt;!-- we don't want the verifier to do a jar for us --&gt; 
      &lt;spring.cloud.contract.verifier.skip&gt;true&lt;/spring.cloud.contract.verifier.skip&gt; 
  
  &lt;assembly
  xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"&gt;
  &lt;id&gt;stubs&lt;/id&gt;
  &lt;formats&gt;
      &lt;format&gt;jar&lt;/format&gt;
  &lt;/formats&gt;
  &lt;includeBaseDirectory&gt;false&lt;/includeBaseDirectory&gt;
  &lt;fileSets&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;src/main/java&lt;/directory&gt;
          &lt;outputDirectory&gt;/&lt;/outputDirectory&gt;
          &lt;includes&gt;
              &lt;include&gt;**com/example/model/*.*&lt;/include&gt;
          &lt;/includes&gt;
      &lt;/fileSet&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;${project.build.directory}/classes&lt;/directory&gt;
          &lt;outputDirectory&gt;/&lt;/outputDirectory&gt;
          &lt;includes&gt;
              &lt;include&gt;**com/example/model/*.*&lt;/include&gt;
          &lt;/includes&gt;
      &lt;/fileSet&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;${project.build.directory}/snippets/stubs&lt;/directory&gt;
          &lt;outputDirectory&gt;META-INF/${project.groupId}/${project.artifactId}/${project.version}/mappings&lt;/outputDirectory&gt;
          &lt;includes&gt;
              &lt;include&gt;**/*&lt;/include&gt;
          &lt;/includes&gt;
      &lt;/fileSet&gt;
      &lt;fileSet&gt;
          &lt;directory&gt;${basedir}/src/test/resources/contracts&lt;/directory&gt;
          &lt;outputDirectory&gt;META-INF/${project.groupId}/${project.artifactId}/${project.version}/contracts&lt;/outputDirectory&gt;
          &lt;includes&gt;
              &lt;include&gt;**/*.groovy&lt;/include&gt;
          &lt;/includes&gt;
      &lt;/fileSet&gt;
  &lt;/fileSets&gt;
  </code></pre>
  
  <p></p>
  
  <ol>
  <li>After I add the "skip" line to the pom, I found that stubs json never get generated.</li>
  <li>I'm using Spring Cloud Contract 1.2.4, and I think there is only "stub" folder in the target, not a "snippets/stubs". </li>
  <li>What files are required in the stub.jar for the Stub Runner to run it?</li>
  </ol>