Class AbstractInvokerMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.iip_ecosphere.platform.tools.maven.invoker.AbstractInvokerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
InstallInvokerMojo, PackageInvokerMojo, ValidateInvokerMojo

public class AbstractInvokerMojo
extends org.apache.maven.plugin.AbstractMojo
Maven POM invoker plugin. This plugin is largely inspired by the maven-invoker plugin.
Author:
Holger Eichelberger, SSE
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private boolean disableBuild  
    private boolean disableJava  
    private boolean disablePython  
    private boolean enabled  
    private java.util.List<java.lang.String> invokeGoals  
    private java.util.List<java.lang.String> invokeProfiles  
    private org.apache.maven.shared.invoker.Invoker invoker  
    private java.io.File javaHome
    The JAVA_HOME environment variable to use for forked Maven invocations.
    private java.io.File localRepositoryPath
    The local repository for caching artifacts.
    private java.io.File mavenExecutable
    mavenExecutable can either be a file relative to ${maven.home}/bin/, test project workspace or an absolute file.
    private java.io.File mavenHome
    The home directory of the Maven installation to use for the forked builds.
    private boolean offline  
    private java.io.File pom  
    private org.apache.maven.project.MavenProject project  
    private boolean showErrors
    Whether to show errors in the build output.
    private boolean showVersion
    Flag to enable show mvn version used for running its (cli option : -V,--show-version ).
    private java.util.List<SystemProperty> systemProperties  
    private int timeoutInSeconds  
    private boolean unpackForce  

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractInvokerMojo()  
  • Method Summary

    Modifier and Type Method Description
    void disable()
    Disables the execution.
    void execute()  

    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 Details

    • project

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

      @Parameter(required=true) private java.util.List<java.lang.String> invokeGoals
    • invokeProfiles

      @Parameter private java.util.List<java.lang.String> invokeProfiles
    • systemProperties

      @Parameter private java.util.List<SystemProperty> systemProperties
    • localRepositoryPath

      @Parameter(defaultValue="${settings.localRepository}") private java.io.File localRepositoryPath
      The local repository for caching artifacts.
    • showVersion

      @Parameter(defaultValue="false") private boolean showVersion
      Flag to enable show mvn version used for running its (cli option : -V,--show-version ).
    • showErrors

      @Parameter(defaultValue="true") private boolean showErrors
      Whether to show errors in the build output.
    • javaHome

      @Parameter private java.io.File javaHome
      The JAVA_HOME environment variable to use for forked Maven invocations. Defaults to the current Java home directory.
    • mavenHome

      @Parameter private java.io.File mavenHome
      The home directory of the Maven installation to use for the forked builds. Defaults to the current Maven installation.
    • mavenExecutable

      @Parameter private java.io.File mavenExecutable
      mavenExecutable can either be a file relative to ${maven.home}/bin/, test project workspace or an absolute file.
    • timeoutInSeconds

      @Parameter(defaultValue="0") private int timeoutInSeconds
    • pom

      @Parameter private java.io.File pom
    • offline

      @Parameter(defaultValue="false") private boolean offline
    • unpackForce

      @Parameter(property="unpack.force", required=false, defaultValue="false") private boolean unpackForce
    • disableJava

      @Parameter(defaultValue="false") private boolean disableJava
    • disablePython

      @Parameter(defaultValue="false") private boolean disablePython
    • disableBuild

      @Parameter(defaultValue="false") private boolean disableBuild
    • invoker

      @Component private org.apache.maven.shared.invoker.Invoker invoker
    • enabled

      private boolean enabled
  • Constructor Details

  • Method Details

    • disable

      public void disable()
      Disables the execution.
    • 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