Interface MavenCommand<RESULT>

All Known Implementing Classes:
AbstractMavenCommand, MavenArchetypeCommand, MavenGenericCommand

public interface MavenCommand<RESULT>
Interface defining the public contract of the Maven Cammand.
Author:
Ikasan Development Team
  • Method Summary

    Modifier and Type
    Method
    Description
    Execute the Maven command.
    void
    setBatchMode(boolean batchmode)
    Allow setting of interactive (batchmode = false) or non-interactive (batchmode = true).
    void
    setDebug(boolean debug)
    Run maven command in debug.
    void
    setWorkingDir(File workingDir)
    Allow setting of the work dir within which the Maven command will execute.
  • Method Details

    • setWorkingDir

      void setWorkingDir(File workingDir)
      Allow setting of the work dir within which the Maven command will execute.
      Parameters:
      workingDir -
    • setBatchMode

      void setBatchMode(boolean batchmode)
      Allow setting of interactive (batchmode = false) or non-interactive (batchmode = true).
      Parameters:
      batchmode -
    • setDebug

      void setDebug(boolean debug)
      Run maven command in debug.
      Parameters:
      debug -
    • execute

      RESULT execute() throws org.apache.maven.shared.invoker.MavenInvocationException, org.apache.maven.shared.utils.cli.CommandLineException
      Execute the Maven command.
      Returns:
      Throws:
      org.apache.maven.shared.invoker.MavenInvocationException
      org.apache.maven.shared.utils.cli.CommandLineException