org.apache.geronimo.mavenplugins.car
Class PlanProcessorMojo
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.geronimo.mavenplugins.car.AbstractCarMojo
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) $
| 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 |
| 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 |
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.
PlanProcessorMojo
public PlanProcessorMojo()
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.