final InternalKieModule kieModule = (InternalKieModule) builder.getKieModule();
final ByteArrayInputStream input = new ByteArrayInputStream( kieModule.getBytes() );
m2RepoService.deployJar( input,
pom.getGav() );
DeployResult deployResult = new DeployResult( pom.getGav().getGroupId(), pom.getGav().getArtifactId(), pom.getGav().getVersion() );
deployResult.setBuildResults(results);
deployResultEvent.fire(deployResult);
return deployResult;
} else {
DeployResult deployResult = new DeployResult();
deployResult.setBuildResults(results);
deployResultEvent.fire(deployResult);
return deployResult;
}
} catch ( Exception e ) {
throw ExceptionUtilities.handleException( e );