1   package com.atlassian.maven.plugins.amps;
2   
3   import org.apache.maven.plugin.MojoExecutionException;
4   import org.apache.maven.plugin.MojoFailureException;
5   import org.jfrog.maven.annomojo.annotations.MojoGoal;
6   import org.jfrog.maven.annomojo.annotations.MojoRequiresDependencyResolution;
7   
8   /**
9    * Generates the files needed by Jersey at runtime to provide an extended WADL including docs
10   * @since 3.6.1
11   */
12  @MojoGoal("generate-rest-docs")
13  @MojoRequiresDependencyResolution("test")
14  public class GenerateRestDocsMojo extends AbstractAmpsMojo
15  {
16  
17      @Override
18      public void execute() throws MojoExecutionException, MojoFailureException
19      {
20          getMavenGoals().generateRestDocs();
21      }
22  }