Class Main

java.lang.Object
org.apache.ivy.Main

public final class Main extends Object
Class used to launch ivy as a standalone tool.

Valid arguments can be obtained with the -? argument.

  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • run

      public static ResolveReport run(String[] args) throws Exception
      A method that allows to run embedded Ivy as if it were launched from CLI (e.g., for use with REPL in Java 9+).
      Parameters:
      args - an array of command line arguments
      Returns:
      null if asked for usage or version, or if anything fails during resolve, publish or launch; a ResolveReport on success
      Throws:
      Exception - if something goes wrong