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 Details

  • 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