apache/maven · error · IllegalArgumentException
Directory '${directory}' does not exist
Error message
Directory '${directory}' does not exist What it means
Error "Directory '${directory}' does not exist" thrown in apache/maven.
Source
Thrown at impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CWD.java:75
*/
@Nonnull
public Path resolve(String seg) {
requireNonNull(seg, "seg");
return directory.resolve(seg).normalize();
}
/**
* Changes current cwd, if the new path is existing directory.
*
* @throws NullPointerException if {@code seg} is {@code null}.
* @throws IllegalArgumentException if {@code seg} leads to non-existent directory.
*/
public void change(String seg) {
Path newCwd = resolve(seg);
if (Files.isDirectory(newCwd)) {
this.directory = newCwd;
} else {
throw new IllegalArgumentException("Directory '" + directory + "' does not exist");
}
}
}
View on GitHub (pinned to e4093d4e12)
When it happens
Trigger: Thrown at impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/CWD.java:75 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/5efe5b8c49811b3f.
Report an issue: GitHub.