//Deploy, if no errors
if ( results.getMessages().isEmpty() ) {
final Builder builder = cache.assertBuilder( project );
final POM pom = pomService.load( project.getPomXMLPath() );
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);