Package org.eclipse.tycho.targetplatform
Class TargetPlatformArtifactResolver
java.lang.Object
org.eclipse.tycho.targetplatform.TargetPlatformArtifactResolver
@Component(role=TargetPlatformArtifactResolver.class)
public class TargetPlatformArtifactResolver
extends Object
This component resolves a given target artifact to a target platform file
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilegetMainTargetFile(org.apache.maven.project.MavenProject project) getReactorTargetFile(String groupId, String artifactId, String version, String classifier, org.apache.maven.execution.MavenSession session) Lookup a given target artifact in the current reactorresolveTargetFile(String groupId, String artifactId, String version, String classifier, org.apache.maven.execution.MavenSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories) Resolves the target file artifact with the given coordinates, session and remote repositories
-
Field Details
-
TARGET_TYPE
- See Also:
-
-
Constructor Details
-
TargetPlatformArtifactResolver
public TargetPlatformArtifactResolver()
-
-
Method Details
-
resolveTargetFile
public File resolveTargetFile(String groupId, String artifactId, String version, String classifier, org.apache.maven.execution.MavenSession session, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories) throws TargetResolveException Resolves the target file artifact with the given coordinates, session and remote repositories- Parameters:
groupId-artifactId-version-classifier-session-remoteRepositories-- Returns:
- the target file for the specified artifact
- Throws:
TargetResolveException- if resolving the target fails
-
getReactorTargetFile
public Optional<File> getReactorTargetFile(String groupId, String artifactId, String version, String classifier, org.apache.maven.execution.MavenSession session) throws TargetResolveException Lookup a given target artifact in the current reactor- Parameters:
groupId-artifactId-version-classifier-session-- Returns:
- an empty optional if no reactor project matches or an optional describing the local file of this target artifact in the reactor
- Throws:
TargetResolveException
-
getMainTargetFile
public static File getMainTargetFile(org.apache.maven.project.MavenProject project) throws TargetResolveException - Throws:
TargetResolveException
-