public abstract class AbstractConfigurationMojo extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected boolean |
skip
Set this to 'true' to bypass cartridge tests entirely.
|
protected boolean |
skipTests
Set this to 'true' to skip running tests, but still compile them.
|
protected boolean |
testFailureIgnore
Set this to true to ignore a failure during testing.
|
Constructor and Description |
---|
AbstractConfigurationMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPluginDependencies(String pluginArtifactId,
String scope)
Adds any dependencies to the current project from the plugin
having the given
pluginArtifactId . |
protected Configuration |
getConfiguration(URL configurationUri)
Creates the Configuration instance from the
URL |
protected abstract org.apache.maven.artifact.factory.ArtifactFactory |
getFactory()
Gets the artifact factory used to construct any new required artifacts.
|
protected abstract ArtifactRepository |
getLocalRepository()
Gets the current local repository instance.
|
protected abstract List<Plugin> |
getPlugins()
Gets the current project's registered plugin implementations.
|
protected abstract org.apache.maven.project.MavenProject |
getProject()
Gets the current project.
|
protected Properties |
getProperties()
Collects and returns all properties as a Properties instance.
|
protected abstract List<String> |
getPropertyFiles()
Gets the property files for the profile (the ones defined
in the filters section of the POM).
|
protected abstract Settings |
getSettings()
Gets the current settings of the project.
|
protected void |
initializeClasspathFromClassPathElements(List<String> classpathFiles)
Sets the current context class loader from the given runtime classpath elements.
|
protected String |
replaceProperties(String string)
Replaces all properties having the style
${some.property} with the value
of the specified property if there is one. |
getLog, getPluginContext, setLog, setPluginContext
protected boolean skip
protected boolean skipTests
protected boolean testFailureIgnore
public AbstractConfigurationMojo()
protected Configuration getConfiguration(URL configurationUri) throws IOException
URL
configurationUri
- IOException
- if the URL is invalid.protected Properties getProperties() throws IOException
IOException
protected String replaceProperties(String string) throws IOException
${some.property}
with the value
of the specified property if there is one.string
- the string to perform replacement on.IOException
protected void initializeClasspathFromClassPathElements(List<String> classpathFiles) throws MalformedURLException
classpathFiles
- MalformedURLException
protected void addPluginDependencies(String pluginArtifactId, String scope)
pluginArtifactId
.pluginArtifactId
- the artifactId of the plugin of which to add its dependencies.scope
- the artifact scope in which to add them (runtime, compile, etc).protected abstract org.apache.maven.project.MavenProject getProject()
protected abstract List<String> getPropertyFiles()
protected abstract Settings getSettings()
protected abstract org.apache.maven.artifact.factory.ArtifactFactory getFactory()
protected abstract List<Plugin> getPlugins()
protected abstract ArtifactRepository getLocalRepository()
Copyright © 2005–2014 AndroMDA.org. All rights reserved.