Class ObrInstall

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="install",
          threadSafe=true,
          defaultPhase=INSTALL)
    public final class ObrInstall
    extends org.apache.maven.plugin.AbstractMojo
    Installs bundle details in the local OBR repository (life-cycle goal)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List attachedArtifacts  
      private org.apache.maven.artifact.repository.ArtifactRepository localRepository
      Local Repository.
      private org.apache.maven.artifact.Artifact m_docArtifact
      Attached doc artifact
      private org.apache.maven.artifact.Artifact m_sourceArtifact
      Attached source artifact
      private java.lang.String obrRepository
      OBR Repository.
      private org.apache.maven.project.MavenProject project
      The Maven project.
      private java.util.List supportedProjectTypes
      Project types which this plugin supports.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      ObrInstall()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      private void updateLocalBundleMetadata​(org.apache.maven.artifact.Artifact artifact, ObrUpdate update)  
      • 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

      • obrRepository

        @Parameter(property="obrRepository")
        private java.lang.String obrRepository
        OBR Repository.
      • supportedProjectTypes

        @Parameter
        private java.util.List supportedProjectTypes
        Project types which this plugin supports.
      • localRepository

        @Parameter(defaultValue="${localRepository}",
                   readonly=true,
                   required=true)
        private org.apache.maven.artifact.repository.ArtifactRepository localRepository
        Local Repository.
      • project

        @Parameter(defaultValue="${project}",
                   readonly=true,
                   required=true)
        private org.apache.maven.project.MavenProject project
        The Maven project.
      • attachedArtifacts

        @Parameter(defaultValue="${project.attachedArtifacts}",
                   readonly=true,
                   required=true)
        private java.util.List attachedArtifacts
      • m_sourceArtifact

        private org.apache.maven.artifact.Artifact m_sourceArtifact
        Attached source artifact
      • m_docArtifact

        private org.apache.maven.artifact.Artifact m_docArtifact
        Attached doc artifact
    • Constructor Detail

      • ObrInstall

        public ObrInstall()
    • Method Detail

      • execute

        public void execute()
      • updateLocalBundleMetadata

        private void updateLocalBundleMetadata​(org.apache.maven.artifact.Artifact artifact,
                                               ObrUpdate update)
                                        throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException