use of org.jboss.galleon.cli.CommandExecutionException in project galleon by wildfly.
the class AbstractPluginsCommand method runCommand.
@Override
protected void runCommand(PmCommandInvocation session, Map<String, String> options) throws CommandExecutionException {
if (isVerbose()) {
session.getPmSession().enableMavenTrace(true);
}
try {
final String id = getId(pmSession);
final FeaturePackLocation loc = id == null ? null : pmSession.getResolvedLocation(getInstallationDirectory(session.getConfiguration().getAeshContext()), id);
runCommand(session, options, loc);
} catch (ProvisioningException ex) {
throw new CommandExecutionException(session.getPmSession(), CliErrors.resolveLocationFailed(), ex);
} finally {
session.getPmSession().enableMavenTrace(false);
}
}
use of org.jboss.galleon.cli.CommandExecutionException in project galleon by wildfly.
the class MavenResolveFeaturePack method runCommand.
@Override
protected void runCommand(PmCommandInvocation session) throws CommandExecutionException {
try {
if (verbose) {
session.getPmSession().enableMavenTrace(true);
}
try {
session.getPmSession().downloadFp(session.getPmSession().getResolvedLocation(null, fpl).getFPID());
session.println("artifact installed in local mvn repository " + session.getPmSession().getPmConfiguration().getMavenConfig().getLocalRepository());
} finally {
session.getPmSession().enableMavenTrace(false);
}
} catch (ProvisioningException ex) {
throw new CommandExecutionException(session.getPmSession(), CliErrors.resolveFeaturePackFailed(), ex);
}
}
Aggregations