package com.masterdoc.plugin;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.plugins.annotations.ResolutionScope;
import org.apache.maven.project.MavenProject;

/**
 * masterdoc goal entry.
 * 
 * @author nlenouvel
 */
@Mojo(name = "masterdoc", requiresDependencyResolution = ResolutionScope.COMPILE)
public class MasterDocPlugin extends AbstractMojo {

  /**
   * The Maven Project.
   */
  @Parameter(defaultValue = "${project}", readonly = true, required = true)
  private MavenProject project;

  /**
   * Path where to generate documentation.
   */
  @Parameter(property = "pathToGenerateFile", readonly = true, required = false, defaultValue = "${project.reporting.outputDirectory}")
  private String       pathToGenerateFile;

  /**
   * Package where to find the classes annotated to generate documentation.
   */
  @Parameter(property = "packageDocumentationResources", readonly = true, required = true)
  private String[]     packageDocumentationResources;

  public void execute() throws MojoExecutionException {
    new MasterDocLogoGenerator();
    try {
      new MasterDocGenerator(project, pathToGenerateFile, packageDocumentationResources);
    } catch (SecurityException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (IllegalArgumentException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (NoSuchFieldException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (IllegalAccessException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }
}

@@ -24,16 +24,93 @@
 lugin;%0A%0A
+import static org.apache.maven.plugins.annotations.ResolutionScope.COMPILE;%0A%0A
 import o
@@ -142,24 +142,24 @@
 stractMojo;%0A
-
 import org.a
@@ -310,69 +310,8 @@
 er;%0A
-import org.apache.maven.plugins.annotations.ResolutionScope;%0A
 impo
@@ -468,32 +468,16 @@
 ution = 
-ResolutionScope.
 COMPILE)
@@ -674,17 +674,16 @@
 roject;%0A
-%0A
   /**%0A  
@@ -865,16 +865,16 @@
 tory%7D%22)%0A
+
   privat
@@ -908,17 +908,16 @@
 teFile;%0A
-%0A
   /**%0A  

Add static