RecipeArtifactResolver

open class RecipeArtifactResolver(context: AetherContext, val logger: RunnerLogger)(source)

Resolves Maven coordinates to local JAR file paths using Maven Resolver.

Downloads the requested artifact and its transitive runtime dependencies, caching them in the local Maven repository configured on context. Maven Central and any extra repositories are supplied via AetherContext.build.

Parameters

context

Shared Maven Resolver context (system, session, remote repositories). Use AetherContext.build to create one.

Constructors

Link copied to clipboard
constructor(context: AetherContext, logger: RunnerLogger)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun resolve(coordinate: String): List<Path>

Resolve a Maven coordinate (groupId:artifactId:version) to a list of JAR paths (the artifact itself plus its transitive runtime dependencies). Version may be "LATEST" to resolve to the highest available release.

Link copied to clipboard
fun resolveAll(coordinates: List<String>): List<Path>

Resolve multiple Maven coordinates together in a single dependency graph, so Maven's conflict resolution (highest version wins) applies across all transitive dependencies. Use this when resolving several recipe artifacts that may share common transitive dependencies at different versions.