Class ResolverCli

java.lang.Object
org.fedoraproject.xmvn.tools.resolve.ResolverCli

public class ResolverCli extends Object
XMvn Resolver is a very simple commald-line tool to resolve Maven artifacts from system repositories. Basically it's just an interface to artifact resolution mechanism implemented by XMvn Core. The primary intended use case of XMvn Resolver is debugging local artifact repositories.

Returns 0 when all artifacts are successfully resolved, 1 on failure to resolve one or more artifacts and 2 when some other error occurs. In the last case a stack trace is printed too.

Author:
Mikolaj Izdebski
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResolverCli(org.fedoraproject.xmvn.logging.Logger logger, org.fedoraproject.xmvn.resolver.Resolver resolver, org.fedoraproject.xmvn.config.Configurator configurator, org.fedoraproject.xmvn.metadata.MetadataResolver metadataResolver)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    doMain(String[] args)
     
    static void
    main(String[] args)
     
    int
    run(org.fedoraproject.xmvn.tools.resolve.ResolverCliRequest cliRequest)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResolverCli

      public ResolverCli(org.fedoraproject.xmvn.logging.Logger logger, org.fedoraproject.xmvn.resolver.Resolver resolver, org.fedoraproject.xmvn.config.Configurator configurator, org.fedoraproject.xmvn.metadata.MetadataResolver metadataResolver)
  • Method Details

    • run

      public int run(org.fedoraproject.xmvn.tools.resolve.ResolverCliRequest cliRequest) throws IOException, io.kojan.xml.XMLException
      Throws:
      IOException
      io.kojan.xml.XMLException
    • doMain

      public static int doMain(String[] args)
    • main

      public static void main(String[] args)