Class MavenCli

java.lang.Object
org.apache.maven.cli.MavenCli

@Deprecated public class MavenCli extends Object
Deprecated.
  • Field Details

    • LOCAL_REPO_PROPERTY

      public static final String LOCAL_REPO_PROPERTY
      Deprecated.
      Use Constants.MAVEN_REPO_LOCAL instead
      See Also:
    • MULTIMODULE_PROJECT_DIRECTORY

      public static final String MULTIMODULE_PROJECT_DIRECTORY
      Deprecated.
      Use ProtoSession.getRootDirectory() instead
      See Also:
    • USER_HOME

      public static final String USER_HOME
      Deprecated.
      Use System.getProperty(String) with "user.home" instead
    • USER_MAVEN_CONFIGURATION_HOME

      public static final File USER_MAVEN_CONFIGURATION_HOME
      Deprecated.
      Use Constants.MAVEN_USER_CONF instead
    • DEFAULT_USER_TOOLCHAINS_FILE

      public static final File DEFAULT_USER_TOOLCHAINS_FILE
      Deprecated.
      Use Constants.MAVEN_USER_TOOLCHAINS instead
    • DEFAULT_GLOBAL_TOOLCHAINS_FILE

      public static final File DEFAULT_GLOBAL_TOOLCHAINS_FILE
      Deprecated.
      Use Constants.MAVEN_INSTALLATION_TOOLCHAINS instead
    • STYLE_COLOR_PROPERTY

      public static final String STYLE_COLOR_PROPERTY
      Deprecated.
      Use Constants.MAVEN_STYLE_COLOR_PROPERTY instead
      See Also:
  • Constructor Details

    • MavenCli

      public MavenCli()
      Deprecated.
    • MavenCli

      public MavenCli(org.codehaus.plexus.classworlds.ClassWorld classWorld)
      Deprecated.
  • Method Details

    • main

      public static void main(String[] args)
      Deprecated.
    • main

      public static int main(String[] args, org.codehaus.plexus.classworlds.ClassWorld classWorld)
      Deprecated.
    • doMain

      public static int doMain(String[] args, org.codehaus.plexus.classworlds.ClassWorld classWorld)
      Deprecated.
    • doMain

      public int doMain(String[] args, String workingDirectory, PrintStream stdout, PrintStream stderr)
      Deprecated.
      This supports painless invocation by the Verifier during embedded execution of the core ITs. See Embedded3xLauncher in maven-verifier
      Parameters:
      args - CLI args
      workingDirectory - working directory
      stdout - stdout
      stderr - stderr
      Returns:
      return code
    • doMain

      public int doMain(CliRequest cliRequest)
      Deprecated.
    • populateRequest

      protected org.apache.maven.execution.MavenExecutionRequest populateRequest(CliRequest cliRequest)
      Deprecated.
    • getConsoleTransferListener

      protected org.eclipse.aether.transfer.TransferListener getConsoleTransferListener(boolean printResourceNames)
      Deprecated.
    • getBatchTransferListener

      protected org.eclipse.aether.transfer.TransferListener getBatchTransferListener()
      Deprecated.
    • customizeContainer

      protected void customizeContainer(org.codehaus.plexus.PlexusContainer container)
      Deprecated.
    • createModelProcessor

      protected org.apache.maven.model.building.ModelProcessor createModelProcessor(org.codehaus.plexus.PlexusContainer container) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Deprecated.
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • setFileSystem

      public void setFileSystem(FileSystem fileSystem)
      Deprecated.