Interface ModelResolver
- All Superinterfaces:
- Service
- All Known Implementing Classes:
- DefaultModelResolver
Resolves a POM from its coordinates.
- 
Method SummaryModifier and TypeMethodDescriptionresolveModel(Session session, List<RemoteRepository> repositories, String groupId, String artifactId, String version, String classifier, Consumer<String> resolvedVersion) default ModelSourceresolveModel(Session session, List<RemoteRepository> repositories, Dependency dependency, AtomicReference<Dependency> modified) Tries to resolve the POM for the specified dependency coordinates possibly updatingdependency.default ModelSourceresolveModel(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 default 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 be- null.
- repositories- The repositories to use to resolve the model, may be- nullin which case the- Sessionrepositories will be used.
- parent- The parent coordinates to resolve, must not be- null.
- modified- a holder for the updated parent, must not be- null.
- Returns:
- The source of the requested POM, never null.
- Throws:
- ModelResolverException- If the POM could not be resolved from any configured repository.
 
- 
resolveModel@Nonnull default 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 be- null.
- repositories- The repositories to use to resolve the model, may be- nullin which case the- Sessionrepositories will be used.
- dependency- The dependency coordinates to resolve, must not be- null.
- modified- a holder for the updated dependency, must not be- null.
- 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 String groupId, @Nonnull String artifactId, @Nonnull String version, @Nullable String classifier, @Nonnull Consumer<String> resolvedVersion) throws ModelResolverException - Throws:
- ModelResolverException
 
 
-