use of org.guvnor.ala.build.maven.model.impl.MavenProjectBinaryImpl in project kie-wb-common by kiegroup.
the class MavenBuildExecConfigExecutor method apply.
@Override
public Optional<BinaryConfig> apply(final MavenBuild mavenBuild, final MavenBuildExecConfig mavenBuildExecConfig) {
final Project project = mavenBuild.getProject();
final MavenProject mavenProject = build(project, mavenBuild.getGoals(), mavenBuild.getProperties());
final Path path = FileSystems.getFileSystem(URI.create("file://default")).getPath(project.getTempDir() + "/target/" + project.getExpectedBinary());
final MavenBinary binary = new MavenProjectBinaryImpl(path, project, mavenProject.getGroupId(), mavenProject.getArtifactId(), mavenProject.getVersion());
buildRegistry.registerBinary(binary);
return Optional.of(binary);
}
Aggregations