Search in sources :

Example 1 with MavenInvocationSilentOutputHandler

use of com.twosigma.beakerx.kernel.commands.MavenInvocationSilentOutputHandler in project beakerx by twosigma.

the class MavenJarResolver method getInvoker.

private Invoker getInvoker(MvnLoggerWidget progress) {
    Invoker invoker = new DefaultInvoker();
    String mvn = findMvn();
    System.setProperty("maven.home", mvn);
    invoker.setLogger(new MavenJarResolverSilentLogger());
    invoker.setOutputHandler(new MavenInvocationSilentOutputHandler(progress));
    invoker.setLocalRepositoryDirectory(getOrCreateFile(this.commandParams.getPathToCache()));
    return invoker;
}
Also used : Invoker(org.apache.maven.shared.invoker.Invoker) DefaultInvoker(org.apache.maven.shared.invoker.DefaultInvoker) MavenInvocationSilentOutputHandler(com.twosigma.beakerx.kernel.commands.MavenInvocationSilentOutputHandler) DefaultInvoker(org.apache.maven.shared.invoker.DefaultInvoker) MavenJarResolverSilentLogger(com.twosigma.beakerx.kernel.commands.MavenJarResolverSilentLogger)

Aggregations

MavenInvocationSilentOutputHandler (com.twosigma.beakerx.kernel.commands.MavenInvocationSilentOutputHandler)1 MavenJarResolverSilentLogger (com.twosigma.beakerx.kernel.commands.MavenJarResolverSilentLogger)1 DefaultInvoker (org.apache.maven.shared.invoker.DefaultInvoker)1 Invoker (org.apache.maven.shared.invoker.Invoker)1