org.codehaus.mojo.sonar
Class SonarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.sonar.SonarMojo
All Implemented Interfaces:
ContextEnabled, Mojo

public class SonarMojo
extends AbstractMojo

Analyze a Maven project. The Sonar server must be started.

Aggregates the Maven project and its child modules.
Is defined by the goal name:
sonar

Field Summary
protected  PluginManager pluginManager
           
protected  MavenProject project
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
SonarMojo()
           
 
Method Summary
 void execute()
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

project

protected MavenProject project
Is readonly.
Is required.
Is defined by:
default-value:
${project}

pluginManager

protected PluginManager pluginManager
Is required.
Is a Plexus component defined by:
Constructor Detail

SonarMojo

public SonarMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException,
                    MojoFailureException
Throws:
MojoExecutionException
MojoFailureException


Copyright © 2009-2011 Codehaus. All Rights Reserved.