Class MavenCommandLineBuilder

java.lang.Object
org.apache.maven.shared.invoker.MavenCommandLineBuilder

public class MavenCommandLineBuilder extends Object

MavenCommandLineBuilder class.

  • Constructor Details

    • MavenCommandLineBuilder

      public MavenCommandLineBuilder()
  • Method Details

    • build

      public org.apache.maven.shared.utils.cli.Commandline build(InvocationRequest request) throws CommandLineConfigurationException

      build.

      Parameters:
      request - a InvocationRequest object.
      Returns:
      a Commandline object.
      Throws:
      CommandLineConfigurationException - if any.
    • checkRequiredState

      protected void checkRequiredState()

      checkRequiredState.

    • setSettingsLocation

      protected void setSettingsLocation(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)

      setSettingsLocation.

      Parameters:
      request - a InvocationRequest object.
      cli - a Commandline object.
    • setToolchainsLocation

      protected void setToolchainsLocation(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)

      setToolchainsLocation.

      Parameters:
      request - a InvocationRequest object.
      cli - a Commandline object.
    • setShellEnvironment

      protected void setShellEnvironment(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)

      setShellEnvironment.

      Parameters:
      request - a InvocationRequest object.
      cli - a Commandline object.
    • setProfiles

      protected void setProfiles(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)

      setProfiles.

      Parameters:
      request - a InvocationRequest object.
      cli - a Commandline object.
    • setGoals

      protected void setGoals(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli) throws CommandLineConfigurationException

      setGoals.

      Parameters:
      request - a InvocationRequest object.
      cli - a Commandline object.
      Throws:
      CommandLineConfigurationException - if any.
    • setProperties

      protected void setProperties(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)

      setProperties.

      Parameters:
      request - a InvocationRequest object.
      cli - a Commandline object.
    • setPomLocation

      protected void setPomLocation(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)

      setPomLocation.

      Parameters:
      request - a InvocationRequest object.
      cli - a Commandline object.
    • setLocalRepository

      protected void setLocalRepository(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)

      setLocalRepository.

      Parameters:
      request - a InvocationRequest object.
      cli - a Commandline object.
    • setReactorBehavior

      protected void setReactorBehavior(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)

      setReactorBehavior.

      Parameters:
      request - a InvocationRequest object.
      cli - a Commandline object.
    • setFlags

      protected void setFlags(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)

      setFlags.

      Parameters:
      request - a InvocationRequest object.
      cli - a Commandline object.
    • setThreads

      protected void setThreads(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)

      setThreads.

      Parameters:
      request - a InvocationRequest object.
      cli - a Commandline object.
    • setArgs

      protected void setArgs(InvocationRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
    • setupMavenExecutable

      protected void setupMavenExecutable(InvocationRequest request) throws CommandLineConfigurationException

      setupMavenExecutable.

      Parameters:
      request - a Invoker request
      Throws:
      CommandLineConfigurationException - if any.
    • getLocalRepositoryDirectory

      public File getLocalRepositoryDirectory()

      Getter for the field localRepositoryDirectory.

      Returns:
      a File object.
    • setLocalRepositoryDirectory

      public void setLocalRepositoryDirectory(File localRepositoryDirectory)

      Setter for the field localRepositoryDirectory.

      Parameters:
      localRepositoryDirectory - a File object.
    • getLogger

      public InvokerLogger getLogger()

      Getter for the field logger.

      Returns:
      a InvokerLogger object.
    • setLogger

      public void setLogger(InvokerLogger logger)

      Setter for the field logger.

      Parameters:
      logger - a InvokerLogger object.
    • getMavenHome

      public File getMavenHome()

      Getter for the field mavenHome.

      Returns:
      a File object.
    • setMavenHome

      public void setMavenHome(File mavenHome)

      Setter for the field mavenHome.

      Parameters:
      mavenHome - a File object.
    • getBaseDirectory

      public File getBaseDirectory()

      Getter for the field baseDirectory.

      Returns:
      a File object.
    • setBaseDirectory

      public void setBaseDirectory(File baseDirectory)

      Setter for the field baseDirectory.

      Parameters:
      baseDirectory - a File object.
    • setMavenExecutable

      public void setMavenExecutable(File mavenExecutable)
      mavenExecutable can either be relative to ${maven.home}/bin/ or absolute
      Parameters:
      mavenExecutable - the executable
    • getMavenExecutable

      public File getMavenExecutable()

      Getter for the field mavenExecutable.

      Returns:
      a File object.