Package com.zfabrik.impl.mvncr
Class RepositoryAccess
java.lang.Object
com.zfabrik.impl.mvncr.RepositoryAccess
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
ConstructorDescriptionRepositoryAccess(File localRepo, File settingsFile)
We take information from settings.xml, in particular the remote repositories. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
List<org.eclipse.aether.repository.RemoteRepository>
Return all remote repos configuredorg.eclipse.aether.RepositorySystem
Create a repository systemorg.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
-
Constructor Details
-
RepositoryAccess
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
Return all remote repos configured -
clear
public void clear()
-