org.apache.geronimo.mavenplugins.car
Class PluginMetadataGeneratorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.pluginsupport.MojoSupport
          extended by org.apache.geronimo.mavenplugins.car.AbstractCarMojo
              extended by org.apache.geronimo.mavenplugins.car.PluginMetadataGeneratorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable

public class PluginMetadataGeneratorMojo
extends AbstractCarMojo

Generate a geronimo-plugin.xml file based on configuration in the pom and car-maven-plugin configuration.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.geronimo.mavenplugins.car.AbstractCarMojo
AbstractCarMojo.ArtifactLookupImpl
 
Field Summary
protected  String pluginMetadataFileName
          Name of generated plugin metadata file.
protected  File targetDir
          Directory for generated plugin metadata file.
 
Fields inherited from class org.apache.geronimo.mavenplugins.car.AbstractCarMojo
artifactFactory, artifactRepository, basedir, dependencyHelper, project, projectHelper
 
Fields inherited from class org.codehaus.mojo.pluginsupport.MojoSupport
container, log
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PluginMetadataGeneratorMojo()
           
 
Method Summary
protected  void doExecute()
          Configuration for this instance itself.
 
Methods inherited from class org.apache.geronimo.mavenplugins.car.AbstractCarMojo
generateExplicitVersionProperties, geronimoToMavenArtifact, getArchiveFile, getArtifactRepository, getDependencies, getProject, includeDependency, init, isModuleArtifact, mavenToGeronimoArtifact, mavenToGeronimoArtifact, resolveDependency
 
Methods inherited from class org.codehaus.mojo.pluginsupport.MojoSupport
contextualize, createArtifact, 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
 

Field Detail

targetDir

protected File targetDir
Directory for generated plugin metadata file.


pluginMetadataFileName

protected String pluginMetadataFileName
Name of generated plugin metadata file.

Constructor Detail

PluginMetadataGeneratorMojo

public PluginMetadataGeneratorMojo()
Method Detail

doExecute

protected void doExecute()
                  throws Exception
Configuration for this instance itself. This is a plugin-artifactType element without moduleId or dependencies. Do not include more than one of these in the parent poms since maven will not merge them correctly. Actually we have to fish this out of the model since maven mangles the xml for us.

Overrides:
doExecute in class org.codehaus.mojo.pluginsupport.MojoSupport
Throws:
Exception


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