Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use repo system for standalone director #4296

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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));
}
}
Loading