Class MavenCli

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

public class MavenCli extends Object
  • Field Details

  • Constructor Details

    • MavenCli

      public MavenCli()
    • MavenCli

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

    • main

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

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

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

      public int doMain(String[] args, String workingDirectory, PrintStream stdout, PrintStream stderr)
      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)
    • populateRequest

      protected MavenExecutionRequest populateRequest(CliRequest cliRequest)
    • getConsoleTransferListener

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

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

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

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

      public void setFileSystem(FileSystem fileSystem)