apache/maven · error · PrompterException
EOF
Error message
EOF
What it means
Error "EOF" thrown in apache/maven.
Source
Thrown at impl/maven-jline/src/main/java/org/apache/maven/jline/DefaultPrompter.java:87
}
}
private void doDisplay(String message) {
try {
MessageUtils.terminal.writer().print(message);
MessageUtils.terminal.flush();
} catch (Exception e) {
throw new PrompterException("Unable to display message", e);
}
}
private String doPrompt(String message, List<?> possibleValues, String defaultReply, boolean password) {
String formattedMessage = formatMessage(message, possibleValues, defaultReply);
String line;
do {
line = doPrompt(formattedMessage, password);
if (line == null && defaultReply == null) {
throw new PrompterException("EOF");
}
if (line == null || line.isEmpty()) {
line = defaultReply;
}
if (line != null && (possibleValues != null && !possibleValues.contains(line))) {
doDisplay("Invalid selection.\n");
}
} while (line == null || (possibleValues != null && !possibleValues.contains(line)));
return line;
}
private String formatMessage(String message, List<?> possibleValues, String defaultReply) {
if (message == null) {
return null;
}
StringBuilder formatted = new StringBuilder(message.length() * 2);
formatted.append(message);
if (possibleValues != null && !possibleValues.isEmpty()) {View on GitHub (pinned to e4093d4e12)
When it happens
Trigger: Thrown at impl/maven-jline/src/main/java/org/apache/maven/jline/DefaultPrompter.java:87 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/d682fc31cacc63df.
Report an issue: GitHub.