title: Enunciate CXF plugin for JAX-RS
body: <p>I am attempting to use the Enunciate plugin for CXF to generate documentation for my REST interfaces via the Maven plugin configured as follows:</p>
  
  <pre><code>&lt;plugin&gt;
    &lt;groupId&gt;org.codehaus.enunciate&lt;/groupId&gt;
    &lt;artifactId&gt;maven-enunciate-cxf-plugin&lt;/artifactId&gt;
    &lt;!-- check for the latest version --&gt;
    &lt;version&gt;1.21&lt;/version&gt;
    &lt;executions&gt;
      &lt;execution&gt;
        &lt;goals&gt;
          &lt;goal&gt;docs&lt;/goal&gt;
        &lt;/goals&gt;
        &lt;configuration&gt;
  
          &lt;!-- the directory where to put the docs --&gt;
          &lt;docsDir&gt;${project.build}/docs &lt;/docsDir&gt;
  
        &lt;/configuration&gt;
      &lt;/execution&gt;
    &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>But when I attempt to run the plugin I get an error from the command line with the command:</p>
  
  <pre><code>mvn clean install
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>[ERROR] BUILD ERROR
  [INFO] ------------------------------------------------------------------------
  [INFO] 'docs' was specified in an execution, but not found in the plugin
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  
  <p>Any suggestions?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Marc</p>
  
  <p>UPDATE:
  I changed the plugin to this:</p>
  
  <pre><code>  &lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.enunciate&lt;/groupId&gt;
      &lt;artifactId&gt;maven-enunciate-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.21&lt;/version&gt;
      &lt;executions&gt;
        &lt;execution&gt;
          &lt;goals&gt;
            &lt;goal&gt;docs&lt;/goal&gt;
          &lt;/goals&gt;
          &lt;configuration&gt;
            &lt;docsDir&gt;${project.build}/docs &lt;/docsDir&gt;
          &lt;/configuration&gt;
        &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;dependencies&gt;
        &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.enunciate&lt;/groupId&gt;
          &lt;artifactId&gt;enunciate-rest&lt;/artifactId&gt;
          &lt;version&gt;1.21&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
          &lt;groupId&gt;org.codehaus.enunciate&lt;/groupId&gt;
          &lt;artifactId&gt;enunciate-cxf-rt&lt;/artifactId&gt;
          &lt;version&gt;1.21&lt;/version&gt;
        &lt;/dependency&gt;
      &lt;/dependencies&gt;
    &lt;/plugin&gt;
  </code></pre>
  
  <p>It works but my JSON objects return types and parameters are not being documented.</p>