我eclipse-aether
用于在运行时下载 jars,但现在我需要从 maven 下载 dll。我尝试了很多不同的东西,但都失败了。其中之一
DefaultArtifact defaultArtifact = new DefaultArtifact(
"com.tagtraum",
"ffsampledsp",
"dll",
"0.9.29"
);
Dependency dependency = new Dependency(defaultArtifact, "runtime", false, Set.of());
CollectRequest collectRequest = new CollectRequest().setRoot(dependency).addRepository(remote);
DependencyNode root = repoSystem.collectDependencies(
newSession(repoSystem, new File("./"), new CancellableTransferListener(new DownloadState("test"))),
collectRequest
).getRoot();
我错了什么?我怎样才能解决我的问题?