org.apache.geronimo.mavenplugins.car
Class PlanProcessorMojo

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.geronimo.mavenplugins.car.AbstractCarMojo
          extended by org.apache.geronimo.mavenplugins.car.PlanProcessorMojo
All Implemented Interfaces:
org.apache.maven.plugin.Mojo, org.codehaus.plexus.logging.LogEnabled

public class PlanProcessorMojo
extends AbstractCarMojo

Add module id and dependencies to a plan and process with velocity

Version:
$Rev: 790327 $ $Date: 2009-07-02 03:22:07 +0800 (Thu, 02 Jul 2009) $

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.geronimo.mavenplugins.car.AbstractCarMojo
AbstractCarMojo.ArtifactLookupImpl
 
Field Summary
protected  File filteredPlanFile
          we copy the plan here for filtering, then add env stuff.
protected  File sourceFile
          Location of unproccesed plan, normally missing moduleId and dependencies.
protected  File targetDir
          Directory to put the processed plan in.
protected  File targetFile
          XXX
 
Fields inherited from class org.apache.geronimo.mavenplugins.car.AbstractCarMojo
artifactFactory, artifactRepository, basedir, encoding, escapeString, localDependencies, mavenFileFilter, mavenResourcesFiltering, project, session, treeListing
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PlanProcessorMojo()
           
 
Method Summary
 void execute()
           
protected  LinkedHashSet<Dependency> toKernelDependencies(List<Dependency> listedDependencies, UseMavenDependencies useMavenDependencies)
           
 
Methods inherited from class org.apache.geronimo.mavenplugins.car.AbstractCarMojo
filter, generateExplicitVersionProperties, geronimoToMavenArtifact, getArchiveFile, getArtifactRepository, getDependencies, getLog, getModuleId, getProject, includeDependency, init, isModuleArtifact, mavenToGeronimoArtifact, mavenToGeronimoArtifact, resolveArtifact, resolveDependency, setLog, toDependencies, toGeronimoDependency
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceFile

protected File sourceFile
Location of unproccesed plan, normally missing moduleId and dependencies.


targetDir

protected File targetDir
Directory to put the processed plan in.


targetFile

protected File targetFile
XXX


filteredPlanFile

protected File filteredPlanFile
we copy the plan here for filtering, then add env stuff.

Constructor Detail

PlanProcessorMojo

public PlanProcessorMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

toKernelDependencies

protected LinkedHashSet<Dependency> toKernelDependencies(List<Dependency> listedDependencies,
                                                         UseMavenDependencies useMavenDependencies)
                                                  throws org.apache.maven.project.artifact.InvalidDependencyVersionException,
                                                         org.apache.maven.artifact.resolver.ArtifactResolutionException,
                                                         org.apache.maven.project.ProjectBuildingException,
                                                         org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.project.artifact.InvalidDependencyVersionException
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.project.ProjectBuildingException
org.apache.maven.plugin.MojoExecutionException


Copyright © 2003-2010 The Apache Geronimo development community. All Rights Reserved.