org.apache.geronimo.plugin.car
Class AbstractCarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.geronimo.plugin.MojoSupport
          extended by org.apache.geronimo.plugin.car.AbstractCarMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
InstallConfigMojo, PackageMojo, PlanProcessorMojo

public abstract class AbstractCarMojo
extends MojoSupport

Support for packaging Mojos.

Version:
$Id: AbstractCarMojo.java 431523 2006-08-15 04:02:48Z jdillon $

Field Summary
protected  org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
           
protected  File basedir
          The basedir of the project.
protected  org.apache.maven.artifact.factory.ArtifactFactory factory
          Used to look up Artifacts in the remote repository.
protected  org.apache.maven.artifact.repository.ArtifactRepository local
          Location of the local repository.
protected  org.apache.maven.project.MavenProject project
          The maven project.
protected  org.apache.maven.project.MavenProjectHelper projectHelper
          The maven project's helper.
protected  List remoteRepos
          List of Remote Repositories used by the resolver.
protected  org.apache.maven.artifact.resolver.ArtifactResolver resolver
          Used to look up Artifacts in the remote repository.
 
Fields inherited from class org.apache.geronimo.plugin.MojoSupport
log
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractCarMojo()
           
 
Method Summary
protected  void generateExplicitVersionProperties(File outputFile)
           
protected static File getArchiveFile(File basedir, String finalName, String classifier)
           
protected  org.apache.maven.artifact.Artifact getArtifact(ArtifactItem item)
          Resolves the Artifact from the remote repository if nessessary.
protected  Set getProjectArtifacts()
           
protected  Set getProjectArtifacts(org.apache.maven.project.MavenProject project)
           
 
Methods inherited from class org.apache.geronimo.plugin.MojoSupport
doExecute, execute, init
 
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
 

Field Detail

project

protected org.apache.maven.project.MavenProject project
The maven project.


factory

protected org.apache.maven.artifact.factory.ArtifactFactory factory
Used to look up Artifacts in the remote repository.


resolver

protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
Used to look up Artifacts in the remote repository.


local

protected org.apache.maven.artifact.repository.ArtifactRepository local
Location of the local repository.


remoteRepos

protected List remoteRepos
List of Remote Repositories used by the resolver.


basedir

protected File basedir
The basedir of the project.


projectHelper

protected org.apache.maven.project.MavenProjectHelper projectHelper
The maven project's helper.


artifactFactory

protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
Constructor Detail

AbstractCarMojo

public AbstractCarMojo()
Method Detail

getProjectArtifacts

protected Set getProjectArtifacts(org.apache.maven.project.MavenProject project)

getProjectArtifacts

protected Set getProjectArtifacts()

generateExplicitVersionProperties

protected void generateExplicitVersionProperties(File outputFile)
                                          throws IOException
Throws:
IOException

getArchiveFile

protected static File getArchiveFile(File basedir,
                                     String finalName,
                                     String classifier)

getArtifact

protected org.apache.maven.artifact.Artifact getArtifact(ArtifactItem item)
                                                  throws org.apache.maven.plugin.MojoExecutionException
Resolves the Artifact from the remote repository if nessessary. If no version is specified, it will be retrieved from the dependency list or from the DependencyManagement section of the pom.

Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2006 Apache Software Foundation. All Rights Reserved.