Class 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

      Fields 
      Modifier and Type Field Description
      private java.lang.String artifactId
      ArtifactId of the bundle.
      private java.lang.String classifier
      Classifier type of the bundle.
      protected java.io.File file
      Bundle file, defaults to the artifact in the local Maven repository.
      private java.lang.String groupId
      GroupId of the bundle.
      private org.apache.maven.artifact.factory.ArtifactFactory m_factory
      Component factory for Maven artifacts
      protected java.lang.String obrXml
      Optional XML file describing additional requirements and capabilities.
      private java.lang.String packaging
      Packaging type of the bundle.
      private java.io.File pomFile
      Location of an existing POM file.
      private java.lang.String version
      Version of the bundle.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.maven.project.MavenProject getProject()  
      • 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
      • Methods inherited from interface org.apache.maven.plugin.Mojo

        execute
    • Field Detail

      • groupId

        @Parameter(property="groupId")
        private java.lang.String groupId
        GroupId of the bundle. Retrieved from POM file if specified.
      • artifactId

        @Parameter(property="artifactId")
        private java.lang.String artifactId
        ArtifactId of the bundle. Retrieved from POM file if specified.
      • version

        @Parameter(property="version")
        private java.lang.String version
        Version of the bundle. Retrieved from POM file if specified.
      • packaging

        @Parameter(property="packaging")
        private java.lang.String packaging
        Packaging type of the bundle. Retrieved from POM file if specified.
      • classifier

        @Parameter(property="classifier")
        private java.lang.String classifier
        Classifier type of the bundle. Defaults to none.
      • pomFile

        @Parameter(property="pomFile")
        private java.io.File pomFile
        Location of an existing POM file.
      • file

        @Parameter(property="file")
        protected java.io.File file
        Bundle file, defaults to the artifact in the local Maven repository.
      • obrXml

        @Parameter(property="obrXml")
        protected java.lang.String obrXml
        Optional XML file describing additional requirements and capabilities.
      • m_factory

        @Component
        private org.apache.maven.artifact.factory.ArtifactFactory m_factory
        Component factory for Maven artifacts
    • Constructor Detail

      • AbstractFileMojo

        public AbstractFileMojo()
    • Method Detail

      • 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