Class BaseInvokerRequest

java.lang.Object
org.apache.maven.cling.invoker.BaseInvokerRequest
All Implemented Interfaces:
InvokerRequest
Direct Known Subclasses:
EncryptInvokerRequest, MavenInvokerRequest, ShellInvokerRequest

public abstract class BaseInvokerRequest extends Object implements InvokerRequest
  • Constructor Details

  • Method Details

    • parserRequest

      public ParserRequest parserRequest()
      Description copied from interface: InvokerRequest
      The parser request this instance was created from.
      Specified by:
      parserRequest in interface InvokerRequest
    • parsingFailed

      public boolean parsingFailed()
      Description copied from interface: InvokerRequest
      Flag representing parser processing result: if there were some fatal errors during Parser.parseInvocation(ParserRequest) this method will return true and invoker should handle this request as "early failure".
      Specified by:
      parsingFailed in interface InvokerRequest
    • cwd

      public Path cwd()
      Description copied from interface: InvokerRequest
      Returns the current working directory for the Maven execution. This is typically the directory from which Maven was invoked.
      Specified by:
      cwd in interface InvokerRequest
      Returns:
      the current working directory path
    • installationDirectory

      public Path installationDirectory()
      Description copied from interface: InvokerRequest
      Returns the Maven installation directory. This is usually set by the Maven launcher script using the "maven.home" system property.
      Specified by:
      installationDirectory in interface InvokerRequest
      Returns:
      the Maven installation directory path
    • userHomeDirectory

      public Path userHomeDirectory()
      Description copied from interface: InvokerRequest
      Returns the user's home directory. This is typically obtained from the "user.home" system property.
      Specified by:
      userHomeDirectory in interface InvokerRequest
      Returns:
      the user's home directory path
    • userProperties

      public Map<String,String> userProperties()
      Description copied from interface: InvokerRequest
      Returns a map of user-defined properties for the Maven execution. These properties can be set using the -D command-line option.
      Specified by:
      userProperties in interface InvokerRequest
      Returns:
      an unmodifiable map of user properties
    • systemProperties

      public Map<String,String> systemProperties()
      Description copied from interface: InvokerRequest
      Returns a map of system properties for the Maven execution. These include both Java system properties and Maven-specific system properties.
      Specified by:
      systemProperties in interface InvokerRequest
      Returns:
      an unmodifiable map of system properties
    • topDirectory

      public Path topDirectory()
      Description copied from interface: InvokerRequest
      Returns the top-level directory of the Maven invocation. This is typically the directory containing the POM file being executed.
      Specified by:
      topDirectory in interface InvokerRequest
      Returns:
      the top-level directory path
    • rootDirectory

      public Optional<Path> rootDirectory()
      Description copied from interface: InvokerRequest
      Returns the root directory of the Maven invocation, if found. This is determined by the presence of a .mvn directory or a POM with the root="true" property but is not always applicable (ie invocation from outside a checkout).
      Specified by:
      rootDirectory in interface InvokerRequest
      Returns:
      the root directory path, if present
    • coreExtensions

      public Optional<List<CoreExtension>> coreExtensions()
      Description copied from interface: InvokerRequest
      Returns a list of core extensions, if configured in the .mvn/extensions.xml file.
      Specified by:
      coreExtensions in interface InvokerRequest
      Returns:
      an Optional containing the list of core extensions, or empty if not configured