Skip to content

Commit eeb1b7a

Browse files
committed
Fix resolving project artifacts
Previous version didn't work correctly under maven 4.0.0-rc4
1 parent 9ac703b commit eeb1b7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/io/trino/maven/SpiDependencyChecker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ private Set<String> getSpiDependencies() throws MojoExecutionException {
9898
private CollectResult getArtifactDependencies(Artifact artifact) throws MojoExecutionException {
9999
try {
100100
Dependency dependency = new Dependency(aetherArtifact(artifact), null);
101-
return repositorySystem.collectDependencies(repositorySession, new CollectRequest(dependency, null));
101+
return repositorySystem.collectDependencies(
102+
repositorySession, new CollectRequest(dependency, project.getRemoteProjectRepositories()));
102103
} catch (DependencyCollectionException e) {
103104
throw new MojoExecutionException("Failed to resolve dependencies.", e);
104105
}

0 commit comments

Comments
 (0)