Package org.apache.maven.api.services
Class VersionRangeResolverRequest.VersionResolverRequestBuilder
java.lang.Object
org.apache.maven.api.services.VersionRangeResolverRequest.VersionResolverRequestBuilder
- Enclosing interface:
- VersionRangeResolverRequest
@NotThreadSafe
public static class VersionRangeResolverRequest.VersionResolverRequestBuilder
extends Object
Builder for
VersionRangeResolverRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifactCoordinates(ArtifactCoordinates artifactCoordinates) Sets the artifact coordinates whose version range should be resolved.build()Builds the version range resolver request.Sets the nature of repositories to query when resolving the version range.repositories(List<RemoteRepository> repositories) Sets the repositories to use for resolving the version range.Sets the session to use for the request.trace(RequestTrace trace) Sets the request trace for debugging and diagnostics.
-
Constructor Details
-
VersionResolverRequestBuilder
public VersionResolverRequestBuilder()
-
-
Method Details
-
session
Sets the session to use for the request.- Parameters:
session- the session, must not benull- Returns:
- this builder, never
null
-
trace
Sets the request trace for debugging and diagnostics.- Parameters:
trace- the request trace, may benull- Returns:
- this builder, never
null
-
artifactCoordinates
public VersionRangeResolverRequest.VersionResolverRequestBuilder artifactCoordinates(ArtifactCoordinates artifactCoordinates) Sets the artifact coordinates whose version range should be resolved.- Parameters:
artifactCoordinates- the artifact coordinates, must not benull- Returns:
- this builder, never
null
-
nature
public VersionRangeResolverRequest.VersionResolverRequestBuilder nature(VersionRangeResolverRequest.Nature nature) Sets the nature of repositories to query when resolving the version range. Ifnullis provided, defaults toVersionRangeResolverRequest.Nature.RELEASE_OR_SNAPSHOT.- Parameters:
nature- the repository nature, ornullto use the default- Returns:
- this builder, never
null
-
repositories
public VersionRangeResolverRequest.VersionResolverRequestBuilder repositories(List<RemoteRepository> repositories) Sets the repositories to use for resolving the version range.- Parameters:
repositories- the repositories, ornullto use the session's repositories- Returns:
- this builder, never
null
-
build
Builds the version range resolver request.- Returns:
- the version range resolver request, never
null
-