org.sonar.updatecenter.mavenplugin
Class AbstractSonarPluginMojo

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

public abstract class AbstractSonarPluginMojo
extends org.apache.maven.plugin.AbstractMojo

Base class for Sonar-plugin-packaging related tasks.

Author:
Evgeny Mandrikov

Field Summary
protected  String pluginKey
          Plugin key.
protected  org.apache.maven.project.MavenProjectHelper projectHelper
           
static String SONAR_GROUPID
           
static String SONAR_PLUGIN_API_ARTIFACTID
           
static String SONAR_PLUGIN_API_TYPE
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractSonarPluginMojo()
           
 
Method Summary
 File getAppDirectory()
           
 String getBasePlugin()
           
protected  File getClassesDirectory()
           
protected  String getClassifier()
           
protected  Set<org.apache.maven.artifact.Artifact> getDependencyArtifacts()
           
protected  Set<org.apache.maven.artifact.Artifact> getDependencyArtifacts(String scope)
           
 String getExplicitPluginKey()
           
protected  String getFinalName()
           
protected  Set<org.apache.maven.artifact.Artifact> getIncludedArtifacts()
           
protected  String getMessage(String title, List<String> ids)
           
protected  File getOutputDirectory()
           
protected  String getPluginClass()
           
protected  String getPluginDescription()
           
protected  String getPluginIssueTrackerUrl()
           
protected  String getPluginName()
           
protected  String getPluginTermsConditionsUrl()
           
protected  String getPluginUrl()
           
protected  org.apache.maven.project.MavenProject getProject()
           
protected  org.apache.maven.artifact.Artifact getSonarPluginApiArtifact()
           
protected  boolean isSkipDependenciesPackaging()
           
 boolean 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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute
 

Field Detail

SONAR_GROUPID

public static final String SONAR_GROUPID
See Also:
Constant Field Values

SONAR_PLUGIN_API_ARTIFACTID

public static final String SONAR_PLUGIN_API_ARTIFACTID
See Also:
Constant Field Values

SONAR_PLUGIN_API_TYPE

public static final String SONAR_PLUGIN_API_TYPE
See Also:
Constant Field Values

projectHelper

protected org.apache.maven.project.MavenProjectHelper projectHelper

pluginKey

protected String pluginKey
Plugin key.

Constructor Detail

AbstractSonarPluginMojo

public AbstractSonarPluginMojo()
Method Detail

getProject

protected final org.apache.maven.project.MavenProject getProject()

getOutputDirectory

protected final File getOutputDirectory()

getClassesDirectory

protected final File getClassesDirectory()
Returns:
the main classes directory, so it's used as the root of the jar.

getAppDirectory

public File getAppDirectory()

getFinalName

protected final String getFinalName()

getClassifier

protected final String getClassifier()

getExplicitPluginKey

public String getExplicitPluginKey()

getPluginClass

protected final String getPluginClass()

getPluginName

protected final String getPluginName()

getPluginDescription

protected final String getPluginDescription()

getPluginUrl

protected final String getPluginUrl()

getPluginTermsConditionsUrl

protected String getPluginTermsConditionsUrl()

getPluginIssueTrackerUrl

protected String getPluginIssueTrackerUrl()

isUseChildFirstClassLoader

public boolean isUseChildFirstClassLoader()

getBasePlugin

public String getBasePlugin()

isSkipDependenciesPackaging

protected boolean isSkipDependenciesPackaging()

getDependencyArtifacts

protected Set<org.apache.maven.artifact.Artifact> getDependencyArtifacts()

getDependencyArtifacts

protected Set<org.apache.maven.artifact.Artifact> getDependencyArtifacts(String scope)

getIncludedArtifacts

protected Set<org.apache.maven.artifact.Artifact> getIncludedArtifacts()

getSonarPluginApiArtifact

protected final org.apache.maven.artifact.Artifact getSonarPluginApiArtifact()

getMessage

protected String getMessage(String title,
                            List<String> ids)


Copyright © 2010-2011 SonarSource. All Rights Reserved.