Interface ModelResolver
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultModelResolver
Resolves a POM from its coordinates.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
static final record
-
Method Summary
Modifier and TypeMethodDescriptionresolveModel
(Session session, List<RemoteRepository> repositories, Dependency dependency, AtomicReference<Dependency> modified) Tries to resolve the POM for the specified dependency coordinates possibly updatingdependency
.resolveModel
(Session session, List<RemoteRepository> repositories, Parent parent, AtomicReference<Parent> modified) Tries to resolve the POM for the specified parent coordinates possibly updatingparent
.
-
Method Details
-
resolveModel
@Nonnull ModelSource resolveModel(@Nonnull Session session, @Nullable List<RemoteRepository> repositories, @Nonnull Parent parent, @Nonnull AtomicReference<Parent> modified) throws ModelResolverException Tries to resolve the POM for the specified parent coordinates possibly updatingparent
.- Parameters:
session
- The session to use to resolve the model, must not benull
.repositories
- The repositories to use to resolve the model, may benull
in which case theSession
repositories will be used.parent
- The parent coordinates to resolve, must not benull
.modified
- a holder for the updated parent, must not benull
.- Returns:
- The source of the requested POM, never
null
. - Throws:
ModelResolverException
- If the POM could not be resolved from any configured repository.
-
resolveModel
@Nonnull ModelSource resolveModel(@Nonnull Session session, @Nullable List<RemoteRepository> repositories, @Nonnull Dependency dependency, @Nonnull AtomicReference<Dependency> modified) throws ModelResolverException Tries to resolve the POM for the specified dependency coordinates possibly updatingdependency
.- Parameters:
session
- The session to use to resolve the model, must not benull
.repositories
- The repositories to use to resolve the model, may benull
in which case theSession
repositories will be used.dependency
- The dependency coordinates to resolve, must not benull
.modified
- a holder for the updated dependency, must not benull
.- Returns:
- The source of the requested POM, never
null
. - Throws:
ModelResolverException
- If the POM could not be resolved from any configured repository.
-
resolveModel
@Nonnull ModelResolver.ModelResolverResult resolveModel(@Nonnull ModelResolver.ModelResolverRequest request) throws ModelResolverException - Throws:
ModelResolverException
-