AetherContext
Bundles the three Maven Resolver objects needed by io.github.skhokhlov.rewriterunner.recipe.RecipeArtifactResolver and io.github.skhokhlov.rewriterunner.lst.DependencyResolutionStage: a RepositorySystem, a RepositorySystemSession, and the list of configured RemoteRepository instances.
Two separate instances are created per io.github.skhokhlov.rewriterunner.RewriteRunner.run invocation, each with a distinct local Maven repository:
Recipe context — local repo at
<cacheDir>/repository, used by io.github.skhokhlov.rewriterunner.recipe.RecipeArtifactResolver. Recipe JARs are kept in the tool's own cache and never written to the user's Maven local repo.Project context — local repo at
~/.m2/repository(Maven default), used by io.github.skhokhlov.rewriterunner.lst.DependencyResolutionStage. Reuses artifacts already cached by the project's own build without re-downloading them.
Create instances via the build factory, passing the desired localRepoDir explicitly.
Parameters
The Maven Resolver RepositorySystem.
The Maven Resolver session (includes local repository, timeout config, etc.).
The remote repositories to query during artifact resolution (Maven Central plus any extras supplied at build time).