Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failure when building main #327

Closed
boschcrank opened this issue Apr 28, 2023 · 3 comments · Fixed by #328
Closed

Compilation failure when building main #327

boschcrank opened this issue Apr 28, 2023 · 3 comments · Fixed by #328

Comments

@boschcrank
Copy link

Describe the bug

Context:

  • Ubuntu 20.04

  • OpenJDK 11

  • Maven 3.6.3

  • Keycloak version is irrelevant, this is a compile error

  • Checkout the main branch.

  • Run mvn clean install.

Maven build fails with

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project keycloak-benchmark-dataset: Compilation failure
[ERROR] .../keycloak-benchmark/dataset/src/main/java/org/keycloak/benchmark/dataset/DatasetResourceProvider.java:[95,51] incompatible types: org.keycloak.models.KeycloakUriInfo cannot be converted to javax.ws.rs.core.UriInfo

Version

20.0.5

Expected behavior

Project builds, jar is created.

Actual behavior

Project build fails.

How to Reproduce?

  • Checkout the main branch.
  • Run mvn clean install.

Anything else?

No response

@ahus1
Copy link
Contributor

ahus1 commented Apr 28, 2023

Thank you for reporting this. The main branch is compiling against the main branch of Keycloak which switched to Jakarta EE earlier this week. I'll create a 0.9 release branch which will target Keycloak 21.1 and earlier later today.

@ahus1
Copy link
Contributor

ahus1 commented Apr 28, 2023

A branch 0.9-release is now available that targets Keycloak 21.1 and earlier.

@ahus1
Copy link
Contributor

ahus1 commented Apr 28, 2023

PR available to fix the compile problems in the main branch: #328

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 a pull request may close this issue.

2 participants