use of org.eclipse.tycho.repository.registry.facade.ReactorRepositoryManagerFacade in project tycho by eclipse.
the class TargetPlatformMojo method execute.
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
ReactorRepositoryManagerFacade repositoryManager = osgiServices.getService(ReactorRepositoryManagerFacade.class);
List<ReactorProjectIdentities> upstreamProjects = getReferencedTychoProjects();
repositoryManager.computeFinalTargetPlatform(DefaultReactorProject.adapt(project), upstreamProjects);
}
use of org.eclipse.tycho.repository.registry.facade.ReactorRepositoryManagerFacade in project tycho by eclipse.
the class AttachPublishedArtifactsMojo method execute.
@Override
public void execute() throws MojoExecutionException, MojoFailureException {
ReactorRepositoryManagerFacade reactorRepoManager = osgiServices.getService(ReactorRepositoryManagerFacade.class);
PublishingRepositoryFacade publishingRepo = reactorRepoManager.getPublishingRepository(getProjectIdentities());
Map<String, File> artifacts = publishingRepo.getArtifactLocations();
for (Entry<String, File> entry : artifacts.entrySet()) {
String classifier = entry.getKey();
File artifactLocation = entry.getValue();
if (classifier == null) {
getProject().getArtifact().setFile(artifactLocation);
} else {
String type = getExtension(artifactLocation);
projectHelper.attachArtifact(getProject(), type, classifier, artifactLocation);
}
}
ReactorProject reactorProject = getReactorProject();
reactorProject.setDependencyMetadata(true, publishingRepo.getInstallableUnits());
reactorProject.setDependencyMetadata(false, Collections.emptySet());
}
Aggregations