org.sonar.updatecenter.mavenplugin
Class SonarPluginMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.sonar.updatecenter.mavenplugin.AbstractSonarPluginMojo
          extended by org.sonar.updatecenter.mavenplugin.SonarPluginMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class SonarPluginMojo
extends AbstractSonarPluginMojo

Build a Sonar Plugin from the current project.

Author:
Evgeny Mandrikov

Field Summary
protected  org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver
          The Jar archiver.
 
Fields inherited from class org.sonar.updatecenter.mavenplugin.AbstractSonarPluginMojo
pluginKey, projectHelper, SONAR_GROUPID, SONAR_PLUGIN_API_ARTIFACTID, SONAR_PLUGIN_API_TYPE
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
SonarPluginMojo()
           
 
Method Summary
 File createArchive()
           
 void execute()
           
protected static File getJarFile(File basedir, String finalName, String classifier)
           
 
Methods inherited from class org.sonar.updatecenter.mavenplugin.AbstractSonarPluginMojo
getAppDirectory, getBasePlugin, getClassesDirectory, getClassifier, getDependencyArtifacts, getDependencyArtifacts, getExplicitPluginKey, getFinalName, getIncludedArtifacts, getMessage, getOutputDirectory, getPluginClass, getPluginDescription, getPluginIssueTrackerUrl, getPluginName, getPluginTermsConditionsUrl, getPluginUrl, getProject, getSonarPluginApiArtifact, isSkipDependenciesPackaging, isUseChildFirstClassLoader
 
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

jarArchiver

protected org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver
The Jar archiver.

Constructor Detail

SonarPluginMojo

public SonarPluginMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

createArchive

public File createArchive()
                   throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getJarFile

protected static File getJarFile(File basedir,
                                 String finalName,
                                 String classifier)


Copyright © 2010-2011 SonarSource. All Rights Reserved.