Skip to content

Commit

Permalink
Don't use repo system for standalone director
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Sep 24, 2024
1 parent 6c80860 commit d209c08
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
import java.util.Arrays;

import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.DefaultArtifact;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.repository.RepositorySystem;
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.component.annotations.Requirement;
import org.codehaus.plexus.logging.Logger;
Expand All @@ -31,9 +31,6 @@
@Component(role = StandaloneDirectorRuntimeFactory.class)
public class StandaloneDirectorRuntimeFactory {

@Requirement
private RepositorySystem repositorySystem;

@Requirement
DirectorRuntime bootstrapDirector;

Expand Down Expand Up @@ -80,8 +77,8 @@ private void installStandaloneDirector(File installLocation, ArtifactRepository

private File getDirectorRepositoryZip(ArtifactRepository localMavenRepository) {
// this artifact is a dependency of the Mojo, so we expect it in the local Maven repo
Artifact artifact = repositorySystem.createArtifact("org.eclipse.tycho", "tycho-bundles-external", "2.7.5",
"eclipse-repository");
Artifact artifact = new DefaultArtifact("org.eclipse.tycho", "tycho-bundles-external", "2.7.5", null, "zip",
null, null);
return new File(localMavenRepository.getBasedir(), localMavenRepository.pathOf(artifact));
}
}

0 comments on commit d209c08

Please sign in to comment.