Class InstallMojo

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

    @Mojo(name="install",
          aggregator=true,
          requiresDependencyResolution=NONE)
    public class InstallMojo
    extends org.apache.maven.plugin.AbstractMojo
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Deployer deployer  
      private org.codehaus.plexus.logging.Logger logger  
      private java.util.List<org.apache.maven.project.MavenProject> reactorProjects  
      private org.eclipse.aether.RepositorySystemSession repoSession  
      private static java.util.Set<java.lang.String> TYCHO_PACKAGING_TYPES  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      InstallMojo()  
      InstallMojo​(Deployer deployer, org.codehaus.plexus.logging.Logger logger)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void deployArtifact​(Artifact artifact, java.lang.String type, org.apache.maven.model.Model model)  
      void execute()  
      private java.lang.String getProjectProperty​(Artifact artifact, java.lang.String key)  
      private void handleSystemDependencies()
      Dump project dependencies with "system" scope and fail if there are any such dependencies are found.
      private static boolean isTychoProject​(org.apache.maven.project.MavenProject project)  
      (package private) void setReactorProjects​(java.util.List<org.apache.maven.project.MavenProject> reactorProjects)  
      • 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

      • TYCHO_PACKAGING_TYPES

        private static final java.util.Set<java.lang.String> TYCHO_PACKAGING_TYPES
      • logger

        @Component
        private org.codehaus.plexus.logging.Logger logger
      • reactorProjects

        @Parameter(defaultValue="${reactorProjects}",
                   readonly=true,
                   required=true)
        private java.util.List<org.apache.maven.project.MavenProject> reactorProjects
      • repoSession

        @Parameter(readonly=true,
                   defaultValue="${repositorySystemSession}")
        private org.eclipse.aether.RepositorySystemSession repoSession
      • deployer

        @Component
        private Deployer deployer
    • Constructor Detail

      • InstallMojo

        public InstallMojo()
      • InstallMojo

        InstallMojo​(Deployer deployer,
                    org.codehaus.plexus.logging.Logger logger)
    • Method Detail

      • isTychoProject

        private static boolean isTychoProject​(org.apache.maven.project.MavenProject project)
      • setReactorProjects

        void setReactorProjects​(java.util.List<org.apache.maven.project.MavenProject> reactorProjects)
      • handleSystemDependencies

        private void handleSystemDependencies()
                                       throws org.apache.maven.plugin.MojoFailureException
        Dump project dependencies with "system" scope and fail if there are any such dependencies are found.
        Throws:
        org.apache.maven.plugin.MojoFailureException
      • getProjectProperty

        private java.lang.String getProjectProperty​(Artifact artifact,
                                                    java.lang.String key)
      • deployArtifact

        private void deployArtifact​(Artifact artifact,
                                    java.lang.String type,
                                    org.apache.maven.model.Model model)
                             throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException