org.ops4j.pax.construct.archetype
Class OSGiProjectArchetypeMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.ops4j.pax.construct.archetype.AbstractPaxArchetypeMojo
org.ops4j.pax.construct.archetype.OSGiProjectArchetypeMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class OSGiProjectArchetypeMojo
- extends AbstractPaxArchetypeMojo
Create a new OSGi project tree that supports wrapping, compiling and provisioning of bundles
mvn org.ops4j:maven-pax-plugin:create-project -DgroupId=... -DartifactId=... [-Dversion=...]
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
protected void |
cacheOriginalFiles(java.io.File baseDir)
Gives sub-classes the chance to cache the original files before custom archetypes run |
protected java.lang.String |
getParentId()
|
protected void |
postProcess(PomUtils.Pom pom,
BndUtils.Bnd bnd)
Sub-class specific post-processing, which runs *after* custom archetypes are added |
protected void |
updateExtensionFields()
Set the remaining fields in the archetype mojo |
Methods inherited from class org.ops4j.pax.construct.archetype.AbstractPaxArchetypeMojo |
addTempFiles, createMoreArtifacts, execute, getArchetypeProperty, getCompoundId, getFactory, getFinalFilenames, getInternalGroupId, getLocalRepo, getPluginVersion, getRemoteRepos, getResolver, getSource, hasCustomContent, saveBndInstructions, saveProjectModel, scheduleArchetype, setArchetypeProperty, setMainArchetype |
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 |
OSGiProjectArchetypeMojo
public OSGiProjectArchetypeMojo()
updateExtensionFields
protected void updateExtensionFields()
- Set the remaining fields in the archetype mojo
- Specified by:
updateExtensionFields
in class AbstractPaxArchetypeMojo
getParentId
protected java.lang.String getParentId()
-
- Specified by:
getParentId
in class AbstractPaxArchetypeMojo
- Returns:
- The logical parent of the new project (use artifactId or groupId:artifactId)
cacheOriginalFiles
protected void cacheOriginalFiles(java.io.File baseDir)
- Gives sub-classes the chance to cache the original files before custom archetypes run
- Overrides:
cacheOriginalFiles
in class AbstractPaxArchetypeMojo
- Parameters:
baseDir
- project base directory
postProcess
protected void postProcess(PomUtils.Pom pom,
BndUtils.Bnd bnd)
- Sub-class specific post-processing, which runs *after* custom archetypes are added
- Overrides:
postProcess
in class AbstractPaxArchetypeMojo
- Parameters:
pom
- working copy of Maven POMbnd
- working copy of Bnd instructions
Copyright © 2007-2008 OPS4J. All Rights Reserved.