org.apache.geronimo.mavenplugins.car
Class AbstractCarMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.pluginsupport.MojoSupport
org.apache.geronimo.mavenplugins.car.AbstractCarMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Direct Known Subclasses:
- InstallArtifactsMojo, InstallModulesMojo, PackageMojo, PlanProcessorMojo
public abstract class AbstractCarMojo
- extends org.codehaus.mojo.pluginsupport.MojoSupport
Support for packaging Mojos.
Field Summary |
protected org.apache.maven.artifact.repository.ArtifactRepository |
artifactRepository
|
protected File |
basedir
The basedir of the project. |
protected org.codehaus.mojo.pluginsupport.dependency.DependencyHelper |
dependencyHelper
|
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected org.apache.maven.project.MavenProjectHelper |
projectHelper
The maven project's helper. |
Fields inherited from class org.codehaus.mojo.pluginsupport.MojoSupport |
container, log |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.codehaus.mojo.pluginsupport.MojoSupport |
contextualize, createArtifact, doExecute, execute, getArtifact, getArtifactFactory, getArtifactResolver, getProjectArtifacts, getProjectArtifacts, getProjectArtifacts, resolveArtifact, resolveArtifact |
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 |
project
protected org.apache.maven.project.MavenProject project
- The maven project.
basedir
protected File basedir
- The basedir of the project.
projectHelper
protected org.apache.maven.project.MavenProjectHelper projectHelper
- The maven project's helper.
dependencyHelper
protected org.codehaus.mojo.pluginsupport.dependency.DependencyHelper dependencyHelper
artifactRepository
protected org.apache.maven.artifact.repository.ArtifactRepository artifactRepository
AbstractCarMojo
public AbstractCarMojo()
getProject
protected org.apache.maven.project.MavenProject getProject()
- Overrides:
getProject
in class org.codehaus.mojo.pluginsupport.MojoSupport
getArtifactRepository
protected org.apache.maven.artifact.repository.ArtifactRepository getArtifactRepository()
- Overrides:
getArtifactRepository
in class org.codehaus.mojo.pluginsupport.MojoSupport
init
protected void init()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Overrides:
init
in class org.codehaus.mojo.pluginsupport.MojoSupport
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
generateExplicitVersionProperties
protected void generateExplicitVersionProperties(File outputFile,
org.codehaus.mojo.pluginsupport.dependency.DependencyTree dependencies)
throws org.apache.maven.plugin.MojoExecutionException,
IOException
- Generates a properties file with explicit versions of artifacts of the current project transitivly.
- Throws:
org.apache.maven.plugin.MojoExecutionException
IOException
getArchiveFile
protected static File getArchiveFile(File basedir,
String finalName,
String classifier)
mavenToGeronimoArtifact
protected Artifact mavenToGeronimoArtifact(org.apache.maven.artifact.Artifact artifact)
geronimoToMavenArtifact
protected org.apache.maven.artifact.Artifact geronimoToMavenArtifact(Artifact artifact)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
isModuleArtifact
protected boolean isModuleArtifact(Artifact artifact)
- Determine if the given artifact is a Geronimo module.
- Parameters:
artifact
- The artifact to check; must not be null.
- Returns:
- True if the artifact is a Geronimo module.
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.