public abstract class AbstractExtensionMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected org.codehaus.plexus.PlexusContainer |
container |
protected List<ComponentRepresentation> |
disabledComponents
The list of components to unregister.
|
protected ExtensionMojoHelper |
extensionHelper |
protected List<ExtensionOverride> |
extensionOverrides |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
The local Maven repository used to resolve required artifacts.
|
protected File |
permanentDirectory
The permanent directory.
|
protected org.apache.maven.project.MavenProject |
project |
protected String |
recommendedVersions |
protected org.apache.maven.execution.MavenSession |
session
The current Maven session being executed.
|
protected boolean |
skip |
Constructor and Description |
---|
AbstractExtensionMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
after() |
protected void |
before() |
void |
execute() |
protected abstract void |
executeInternal() |
protected void |
initializeExtensionMojoHelper() |
protected boolean |
isSkipExecution() |
@Component protected org.codehaus.plexus.PlexusContainer container
@Parameter(defaultValue="${session}", required=true, readonly=true) protected org.apache.maven.execution.MavenSession session
@Parameter(property="localRepository") protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
@Parameter protected List<ExtensionOverride> extensionOverrides
@Parameter protected boolean skip
@Parameter(defaultValue="${project}", required=true, readonly=true) protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${project.build.directory}/data/") protected File permanentDirectory
@Parameter(defaultValue="${xwiki.extension.recommendedVersions}") protected String recommendedVersions
@Unstable @Parameter protected List<ComponentRepresentation> disabledComponents
protected ExtensionMojoHelper extensionHelper
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected boolean isSkipExecution()
protected void before() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void after() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected abstract void executeInternal() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected void initializeExtensionMojoHelper() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2004–2022 XWiki. All rights reserved.