Skip to content

Commit a552b86

Browse files
committed
[HttpClient] Improve error when no client implementation found
Add the: `3. Using JDK 23+, and need to set property <maven.compiler.proc>full</maven.compiler.proc>` ... just to be a bit more explicit. The `avaje-http-client-generator dependency was not available` is accurate but perhaps it's good to explicitly mention the maven.compiler.proc full issue.
1 parent 2acfc9e commit a552b86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http-client/src/main/java/io/avaje/http/client/DHttpApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ <T> T provideFor(Class<T> type, HttpClient httpClient) {
4242
+ type
4343
+ "\nPossible Causes: \n"
4444
+ "1. Missing @Client or @Client.Import annotation.\n"
45-
+ "2. The avaje-http-client-generator dependency was not available during compilation\n");
45+
+ "2. The avaje-http-client-generator dependency was not available during compilation\n"
46+
+ "3. Using JDK 23+, and need to set property <maven.compiler.proc>full</maven.compiler.proc>\n");
4647
}
4748
return apiProvider.provide(httpClient);
4849
}

0 commit comments

Comments
 (0)