blob: 6eff11ff6078f11b90e85ac65a7ea0fc2927dd1b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2014 Sonatype Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Sonatype Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.tycho.core;
import java.util.List;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.logging.Logger;
import org.eclipse.tycho.ReactorProject;
import org.eclipse.tycho.artifacts.DependencyArtifacts;
import org.eclipse.tycho.artifacts.TargetPlatform;
import org.eclipse.tycho.core.osgitools.AbstractTychoProject;
/**
* Resolves project dependencies against the content of the target platform.
*/
public interface DependencyResolver {
public void setupProjects(MavenSession session, MavenProject project, ReactorProject reactorProject);
public TargetPlatform computePreliminaryTargetPlatform(MavenSession session, MavenProject project,
List<ReactorProject> reactorProjects);
/**
* @param targetPlatform
* The candidate artifacts which may be used to resolve dependencies. If
* <code>null</code>, the final target platform of the project will be used.
*/
public DependencyArtifacts resolveDependencies(MavenSession session, MavenProject project,
TargetPlatform targetPlatform, List<ReactorProject> reactorProjects,
DependencyResolverConfiguration resolverConfiguration);
public void injectDependenciesIntoMavenModel(MavenProject project, AbstractTychoProject projectType,
DependencyArtifacts resolvedDependencies, Logger logger);
}