public abstract class AbstractMRMMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.archetype.ArchetypeManager |
archetypeManager
The archetype manager
|
protected org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory
The artifact factory.
|
protected org.apache.maven.artifact.resolver.ArtifactResolver |
artifactResolver
The artifact resolver.
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
The local repository.
|
protected org.apache.maven.plugin.MojoExecution |
mojoExecution
This mojo's execution.
|
protected org.apache.maven.plugin.descriptor.PluginDescriptor |
pluginDescriptor
This plugins descriptor.
|
protected org.apache.maven.project.MavenProject |
project
The Maven project.
|
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
remoteArtifactRepositories
The remote repositories.
|
protected List<org.apache.maven.artifact.repository.ArtifactRepository> |
remotePluginRepositories
The remote pluginRepositories.
|
protected org.apache.maven.execution.MavenSession |
session
The Maven Session Object
|
protected boolean |
skip
If true, execution of the plugin is skipped.
|
| Constructor and Description |
|---|
AbstractMRMMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected FactoryHelper |
createFactoryHelper()
Creates a new
FactoryHelper instance for injection into anything that needs one. |
protected ProxyArtifactStore |
createProxyArtifactStore()
Creates an
ArtifactStore that fetches from the repositories available to
Maven itself. |
protected abstract void |
doExecute()
Performs this plugin's action.
|
void |
execute()
Executes the plugin goal (if the plugin is not skipped)
|
protected org.apache.maven.plugin.MojoExecution |
getMojoExecution() |
@Parameter(defaultValue="${project}",
required=true,
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${project.remoteArtifactRepositories}",
readonly=true)
protected List<org.apache.maven.artifact.repository.ArtifactRepository> remoteArtifactRepositories
@Parameter(defaultValue="${project.pluginArtifactRepositories}",
readonly=true)
protected List<org.apache.maven.artifact.repository.ArtifactRepository> remotePluginRepositories
@Parameter(defaultValue="${localRepository}",
readonly=true)
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
@Component protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
@Component protected org.apache.maven.artifact.resolver.ArtifactResolver artifactResolver
@Component protected org.apache.maven.archetype.ArchetypeManager archetypeManager
@Parameter(defaultValue="${session}",
required=true,
readonly=true)
protected org.apache.maven.execution.MavenSession session
@Parameter(defaultValue="${plugin}",
required=true,
readonly=true)
protected org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor
@Parameter(defaultValue="${mojoExecution}",
readonly=true,
required=true)
protected org.apache.maven.plugin.MojoExecution mojoExecution
@Parameter(property="mrm.skip",
defaultValue="false")
protected boolean skip
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - If there is an exception occuring during the execution of the plugin.org.apache.maven.plugin.MojoFailureException - If there is an exception occuring during the execution of the plugin.protected org.apache.maven.plugin.MojoExecution getMojoExecution()
protected abstract void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException - If there is an exception occuring during the execution of the plugin.org.apache.maven.plugin.MojoFailureException - If there is an exception occuring during the execution of the plugin.protected ProxyArtifactStore createProxyArtifactStore()
ArtifactStore that fetches from the repositories available to
Maven itself.ArtifactStore that fetches from the repositories available to
Maven itself.protected FactoryHelper createFactoryHelper()
FactoryHelper instance for injection into anything that needs one.FactoryHelper instance for injection into anything that needs one.Copyright © 2009–2022 MojoHaus. All rights reserved.