MavenDependencyResolver

class MavenDependencyResolver(cacheDir: Path, repositories: List<RemoteRepository> = listOf( RemoteRepository.Builder("modlabs-mirror", "default", "https://nexus.modlabs.cc/repository/maven-mirrors/").build() ))

Resolves Maven coordinates to local jar files using Maven Resolver (Aether).

Intended usage

This is for a standalone KTale host runtime that builds plugin classloaders from resolved jars.

Non-goal

This class does not modify classpaths. It only downloads and returns file paths.

Constructors

Link copied to clipboard
constructor(cacheDir: Path, repositories: List<RemoteRepository> = listOf( RemoteRepository.Builder("modlabs-mirror", "default", "https://nexus.modlabs.cc/repository/maven-mirrors/").build() ))

Types

Link copied to clipboard
object Companion

Functions

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

Resolves all coordinates (and their transitive runtime dependencies) to local jar paths.