apache/maven · error · ModelResolverException
The requested {modelType }version range '{version}'{ (at loc
Error message
The requested {modelType }version range '{version}'{ (at location)} does not specify an upper bound What it means
Error "The requested {modelType }version range '{version}'{ (at location)} does not specify an upper bound" thrown in apache/maven.
Source
Thrown at impl/maven-impl/src/main/java/org/apache/maven/impl/resolver/DefaultModelResolver.java:137
public ModelResolverResult doResolveModel(
@Nonnull ModelResolverRequest request, InputLocation location, String modelType)
throws ModelResolverException {
Session session = request.session();
String groupId = request.groupId();
String artifactId = request.artifactId();
String version = request.version();
String classifier = request.classifier();
String extension = request.extension();
List<RemoteRepository> repositories = request.repositories();
RequestTraceHelper.ResolverTrace trace = RequestTraceHelper.enter(session, request);
try {
ArtifactCoordinates coords =
session.createArtifactCoordinates(groupId, artifactId, version, classifier, extension, null);
if (coords.getVersionConstraint().getVersionRange() != null
&& coords.getVersionConstraint().getVersionRange().getUpperBoundary() == null) {
// Message below is checked for in the MNG-2199 core IT.
throw new ModelResolverException(
"The requested " + (modelType != null ? modelType + " " : "") + "version range '" + version
+ "'"
+ (location != null ? " (at " + location + ")" : "")
+ " does not specify an upper bound",
groupId,
artifactId,
version);
}
String newVersion = session.resolveHighestVersion(coords, repositories)
.orElseThrow(() -> new ModelResolverException(
"No versions matched the requested " + (modelType != null ? modelType + " " : "")
+ "version range '" + version + "'",
groupId,
artifactId,
version))
.toString();
String resultVersion = version.equals(newVersion) ? null : newVersion;
Path path = getPath(session, repositories, groupId, artifactId, newVersion, classifier, extension);View on GitHub (pinned to e4093d4e12)
When it happens
Trigger: Thrown at impl/maven-impl/src/main/java/org/apache/maven/impl/resolver/DefaultModelResolver.java:137 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of apache/maven@e4093d4e12 (2026-08-21).
Data as JSON: /api/errors/977d49001c17bc3b.
Report an issue: GitHub.