Search in sources :

Example 1 with MavenServerProgressNotifier

use of org.eclipse.che.maven.server.MavenServerProgressNotifier in project che by eclipse.

the class MavenServerWrapper method customize.

public void customize(MavenWorkspaceCache cache, MavenTerminal mavenTerminal, MavenProgressNotifier notifier, boolean failOnUnresolvedDependency, boolean alwaysUpdateSnapshot) {
    if (customization != null) {
        uncustomize();
    }
    MavenTerminal mavenTerminalWrapper;
    try {
        mavenTerminalWrapper = new MavenTerminalWrapper(mavenTerminal);
        UnicastRemoteObject.exportObject(mavenTerminalWrapper, 0);
    } catch (RemoteException e) {
        throw new RuntimeException(e);
    }
    MavenServerProgressNotifier wrapper;
    try {
        wrapper = new MavenServerProgressNotifierWrapper(notifier);
        UnicastRemoteObject.exportObject(wrapper, 0);
    } catch (RemoteException e) {
        throw new RuntimeException(e);
    }
    customization = new MavenCustomization(cache, mavenTerminalWrapper, wrapper, failOnUnresolvedDependency, alwaysUpdateSnapshot);
    perform(this::customizeMaven);
}
Also used : MavenTerminal(org.eclipse.che.maven.server.MavenTerminal) MavenServerProgressNotifier(org.eclipse.che.maven.server.MavenServerProgressNotifier) RemoteException(java.rmi.RemoteException)

Aggregations

RemoteException (java.rmi.RemoteException)1 MavenServerProgressNotifier (org.eclipse.che.maven.server.MavenServerProgressNotifier)1 MavenTerminal (org.eclipse.che.maven.server.MavenTerminal)1