use of org.eclipse.che.maven.CheArtifactResolver in project che by eclipse.
the class MavenServerImpl method reset.
@Override
public void reset() throws RemoteException {
terminalLogger.setTerminal(null);
mavenProgressNotifier = null;
ArtifactResolver artifactResolver = getMavenComponent(ArtifactResolver.class);
if (artifactResolver instanceof CheArtifactResolver) {
((CheArtifactResolver) artifactResolver).reset();
}
}
use of org.eclipse.che.maven.CheArtifactResolver in project che by eclipse.
the class MavenServerImpl method setComponents.
@Override
public void setComponents(MavenWorkspaceCache cache, boolean failOnUnresolvedDependency, MavenTerminal mavenTerminal, MavenServerProgressNotifier notifier, boolean alwaysUpdateSnapshot) throws RemoteException {
container.addComponent(getMavenComponent(ArtifactResolver.class, "che"), ArtifactResolver.ROLE);
ArtifactResolver artifactResolver = getMavenComponent(ArtifactResolver.class);
if (artifactResolver instanceof CheArtifactResolver) {
((CheArtifactResolver) artifactResolver).setWorkspaceCache(cache, failOnUnresolvedDependency);
}
buildDate = new Date();
workspaceCache = cache;
updateSnapshots = updateSnapshots || alwaysUpdateSnapshot;
terminalLogger.setTerminal(mavenTerminal);
mavenProgressNotifier = new MavenServerProgressNotifierImpl(notifier);
}
Aggregations