org.sonar.updatecenter.mavenplugin
Class AbstractSonarPluginMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| 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 |
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.
AbstractSonarPluginMojo
public AbstractSonarPluginMojo()
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.