Class AbstractFileMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.felix.obrplugin.AbstractFileMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
ObrDeployFile, ObrInstallFile
public abstract class AbstractFileMojo
extends org.apache.maven.plugin.AbstractMojo
Base class for the command-line install-file and deploy-file goals.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringArtifactId of the bundle.private StringClassifier type of the bundle.protected FileBundle file, defaults to the artifact in the local Maven repository.private StringGroupId of the bundle.private org.apache.maven.artifact.factory.ArtifactFactoryComponent factory for Maven artifactsprotected StringOptional XML file describing additional requirements and capabilities.private StringPackaging type of the bundle.private FileLocation of an existing POM file.private StringVersion of the bundle.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
groupId
GroupId of the bundle. Retrieved from POM file if specified. -
artifactId
ArtifactId of the bundle. Retrieved from POM file if specified. -
version
Version of the bundle. Retrieved from POM file if specified. -
packaging
Packaging type of the bundle. Retrieved from POM file if specified. -
classifier
Classifier type of the bundle. Defaults to none. -
pomFile
Location of an existing POM file. -
file
Bundle file, defaults to the artifact in the local Maven repository. -
obrXml
Optional XML file describing additional requirements and capabilities. -
m_factory
@Component private org.apache.maven.artifact.factory.ArtifactFactory m_factoryComponent factory for Maven artifacts
-
-
Constructor Details
-
AbstractFileMojo
public AbstractFileMojo()
-
-
Method Details
-
getProject
public org.apache.maven.project.MavenProject getProject() throws org.apache.maven.plugin.MojoExecutionException- Returns:
- project based on command-line settings, with bundle attached
- Throws:
org.apache.maven.plugin.MojoExecutionException
-