Class RepositoryAccess

java.lang.Object
com.zfabrik.impl.mvncr.RepositoryAccess

public class RepositoryAccess extends Object
This is strongly inspired from http://git.eclipse.org/c/aether/aether-ant.git/tree/src/main/java/org/eclipse/aether/ant/AntRepoSys.jav Note... the hard part is not only to dig through endless useless layers of abstraction but also to actually fill the missing links between parsing settings and making use of them
  • Constructor Summary

    Constructors
    Constructor
    Description
    RepositoryAccess​(File localRepo, File settingsFile)
    We take information from settings.xml, in particular the remote repositories.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    List<org.eclipse.aether.repository.RemoteRepository>
    Return all remote repos configured
    org.eclipse.aether.RepositorySystem
    Create a repository system
    org.eclipse.aether.RepositorySystemSession
    Create a repository system session (this is the state object for interacting with aether)
    void
    setOffline​(boolean offline)
    In cases of erros in "relaxed" repos, we may decide to go offline

    Methods inherited from class java.lang.Object

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

    • RepositoryAccess

      public RepositoryAccess(File localRepo, File settingsFile)
      We take information from settings.xml, in particular the remote repositories.
  • Method Details

    • setOffline

      public void setOffline(boolean offline)
      In cases of erros in "relaxed" repos, we may decide to go offline
    • getSystem

      public org.eclipse.aether.RepositorySystem getSystem()
      Create a repository system
      Returns:
    • getSystemSession

      public org.eclipse.aether.RepositorySystemSession getSystemSession()
      Create a repository system session (this is the state object for interacting with aether)
    • getRemoteRepositories

      public List<org.eclipse.aether.repository.RemoteRepository> getRemoteRepositories()
      Return all remote repos configured
    • clear

      public void clear()