Skip to content

Conversation

@rob-bygrave
Copy link
Contributor

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.

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. Missing @Client or @Client.Import annotation.\n"
+ "2. The avaje-http-client-generator dependency was not available during compilation\n");
+ "2. The avaje-http-client-generator dependency was not available during compilation\n"
+ "3. Using JDK 23+, and need to set property <maven.compiler.proc>full</maven.compiler.proc>\n");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+ "3. Using JDK 23+, and need to set property <maven.compiler.proc>full</maven.compiler.proc>\n");
+ (Runtime.version().feature() >= 23
? "3. Maven property <maven.compiler.proc>full</maven.compiler.proc> was not set when compiling\n"
: ""));

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The suggested change wouldn't have helped for the actual case which was a bit weird - IDE generated the code, maven didn't, code was published and use on ANOTHER JDK (as part of an integration test that can't run locally yet) ... and failed there on a different JDK.

So the Runtime.version().feature() >= 23 wouldn't help for this scenario.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it feels like a pretty unique set of circumstances ... but I'm kinda feeling that it's better to have the reason in there anyway.

@rbygrave rbygrave enabled auto-merge (squash) November 27, 2025 20:53
@rbygrave rbygrave self-assigned this Nov 27, 2025
@rbygrave rbygrave merged commit ab9ada9 into master Nov 27, 2025
6 checks passed
@SentryMan SentryMan deleted the feature/improve-error-mavenCompilerProcFull branch November 28, 2025 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants