Repository navigation
problems to build keycloak from source #15387
Unanswered
bozzadavide
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am trying to build keycloak for repo.
I have just cloned it.
My configuration is:
davidebozza@2022-151960 keycloak % ./mvnw -v
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /Users/davidebozza/.m2/wrapper/dists/apache-maven-3.8.6-bin/1ks0nkde5v1pk9vtc31i9d0lcd/apache-maven-3.8.6
Java version: 11.0.15, vendor: Amazon.com Inc., runtime: /Users/davidebozza/.sdkman/candidates/java/11.0.15.9.1-amzn
Default locale: it_IT, platform encoding: UTF-8
OS name: "mac os x", version: "13.0", arch: "aarch64", family: "mac"
davidebozza@2022-151960 keycloak % npm -v
8.11.0
davidebozza@2022-151960 keycloak % node -v
v16.15.1
I tried to build main branch but also release/20.0
I use this command:
./mvnw clean install -Dmaven.test.skip
I got following error:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/davidebozza/Documents/git/keycloak/testsuite/integration-arquillian/servers/app-server/undertow/src/main/java/org/keycloak/testsuite/arquillian/undertow/UndertowAppServer.java:[239,22] no suitable method found for toString(java.io.InputStream,java.nio.charset.Charset)
method org.apache.commons.io.IOUtils.toString(java.io.InputStream,java.lang.String) is not applicable
(argument mismatch; java.nio.charset.Charset cannot be converted to java.lang.String)
method org.apache.commons.io.IOUtils.toString(byte[],java.lang.String) is not applicable
(argument mismatch; java.io.InputStream cannot be converted to byte[])
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Keycloak 999-SNAPSHOT:
[INFO]
[INFO] Keycloak BOM Parent ................................ SUCCESS [ 0.363 s]
[INFO] Keycloak BOM for adapters .......................... SUCCESS [ 0.006 s]
[INFO] Keycloak BOM for server extensions ................. SUCCESS [ 0.005 s]
[INFO] Keycloak BOM utilities for the quickstarts ......... SUCCESS [ 0.004 s]
[INFO] Keycloak ........................................... SUCCESS [ 0.025 s]
[INFO] Keycloak Common .................................... SUCCESS [ 1.577 s]
[INFO] Keycloak Core ...................................... SUCCESS [ 0.946 s]
[INFO] Keycloak Server SPI ................................ SUCCESS [ 0.687 s]
[INFO] Keycloak Server Private SPI ........................ SUCCESS [ 1.227 s]
[INFO] Keycloak Crypto Parent ............................. SUCCESS [ 0.006 s]
[INFO] Keycloak Crypto Default ............................ SUCCESS [ 0.132 s]
[INFO] Keycloak SAML Core Public API ...................... SUCCESS [ 0.505 s]
[INFO] Keycloak SAML Core ................................. SUCCESS [ 0.654 s]
[INFO] Keycloak REST Services ............................. SUCCESS [ 4.513 s]
[INFO] Keycloak Crypto FIPS 140-2 Integration ............. SUCCESS [ 0.176 s]
[INFO] Keycloak Crypto Wildfly Elytron Integration ........ SUCCESS [ 0.222 s]
[INFO] Keycloak JS Integration ............................ SUCCESS [ 2.930 s]
[INFO] Keycloak Themes .................................... SUCCESS [ 51.885 s]
[INFO] Keycloak Dependencies Parent ....................... SUCCESS [ 0.005 s]
[INFO] Keycloak Dependencies Server Min ................... SUCCESS [ 0.005 s]
[INFO] Keycloak Model Parent .............................. SUCCESS [ 0.005 s]
[INFO] Keycloak Legacy Database Support ................... SUCCESS [ 0.192 s]
[INFO] Keycloak Legacy Database Support - Private classes . SUCCESS [ 0.370 s]
[INFO] Keycloak Model JPA ................................. SUCCESS [ 0.833 s]
[INFO] Keycloak Model Java Annotations and Processor ...... SUCCESS [ 0.132 s]
[INFO] Keycloak Model Map ................................. SUCCESS [ 2.079 s]
[INFO] Keycloak Model Map JPA ............................. SUCCESS [ 1.277 s]
[INFO] Keycloak Model Map LDAP ............................ SUCCESS [ 0.179 s]
[INFO] Keycloak Kerberos Federation ....................... SUCCESS [ 0.109 s]
[INFO] Keycloak LDAP UserStoreProvider .................... SUCCESS [ 0.377 s]
[INFO] Keycloak Legacy Database Support - REST services ... SUCCESS [ 0.176 s]
[INFO] Keycloak Model Infinispan .......................... SUCCESS [ 1.164 s]
[INFO] Keycloak Model Hot Rod ............................. SUCCESS [ 1.283 s]
[INFO] Keycloak SSSD Federation ........................... SUCCESS [ 0.358 s]
[INFO] KeyCloak Authz: Parent ............................. SUCCESS [ 0.004 s]
[INFO] KeyCloak AuthZ: Provider Parent .................... SUCCESS [ 0.004 s]
[INFO] KeyCloak AuthZ: Common Policy Providers ............ SUCCESS [ 0.169 s]
[INFO] Keycloak Dependencies Server All ................... SUCCESS [ 0.012 s]
[INFO] Keycloak Admin UI BOM wrapper ...................... SUCCESS [ 0.044 s]
[INFO] Keycloak Quarkus Parent ............................ SUCCESS [ 0.006 s]
[INFO] Keycloak Configuration API ......................... SUCCESS [ 0.190 s]
[INFO] Keycloak Quarkus Server Extension .................. SUCCESS [ 1.888 s]
[INFO] Keycloak Docs Parent ............................... SUCCESS [ 0.004 s]
[INFO] Keycloak Guides Maven Plugin ....................... SUCCESS [ 2.992 s]
[INFO] Keycloak Guides .................................... SUCCESS [ 3.304 s]
[INFO] Keycloak Federation ................................ SUCCESS [ 0.005 s]
[INFO] Keycloak Util Embedded LDAP ........................ SUCCESS [ 0.196 s]
[INFO] Keycloak Util Parent ............................... SUCCESS [ 0.004 s]
[INFO] Keycloak Integration ............................... SUCCESS [ 0.003 s]
[INFO] Keycloak Admin REST Client ......................... SUCCESS [ 0.159 s]
[INFO] Keycloak Admin REST Client for Jakarta packages .... SUCCESS [ 0.402 s]
[INFO] Keycloak Client Registration API ................... SUCCESS [ 0.089 s]
[INFO] Keycloak Client CLI ................................ SUCCESS [ 0.005 s]
[INFO] Keycloak Client Registration CLI ................... SUCCESS [ 1.348 s]
[INFO] Keycloak Admin CLI ................................. SUCCESS [ 1.325 s]
[INFO] Keycloak Client CLI Distribution ................... SUCCESS [ 0.467 s]
[INFO] Keycloak Adapter SPI ............................... SUCCESS [ 0.114 s]
[INFO] Keycloak Tomcat Adapter SPI ........................ SUCCESS [ 0.067 s]
[INFO] Keycloak Undertow Integration SPI .................. SUCCESS [ 0.130 s]
[INFO] Keycloak Servlet Integration ....................... SUCCESS [ 0.076 s]
[INFO] Common JBoss/Wildfly Core Classes .................. SUCCESS [ 0.053 s]
[INFO] Keycloak Jetty Adapter SPI ......................... SUCCESS [ 0.092 s]
[INFO] Keycloak Client Adapter SPI Modules ................ SUCCESS [ 0.004 s]
[INFO] Keycloak SAML Client Adapter Public API ............ SUCCESS [ 0.053 s]
[INFO] Keycloak SAML Client Adapter Core .................. SUCCESS [ 0.201 s]
[INFO] Keycloak Jetty Core SAML Integration ............... SUCCESS [ 0.135 s]
[INFO] Keycloak Jetty 9.4.x SAML Integration .............. SUCCESS [ 0.131 s]
[INFO] Keycloak SAML Jetty Integration .................... SUCCESS [ 0.004 s]
[INFO] Keycloak Undertow SAML Adapter ..................... SUCCESS [ 0.087 s]
[INFO] Keycloak SAML Tomcat Integration ................... SUCCESS [ 0.004 s]
[INFO] Keycloak Tomcat Core SAML Integration .............. SUCCESS [ 0.079 s]
[INFO] Keycloak Tomcat SAML Integration ................... SUCCESS [ 0.076 s]
[INFO] KeyCloak Authz: Client API ......................... SUCCESS [ 0.202 s]
[INFO] Keycloak Adapter Core .............................. SUCCESS [ 0.377 s]
[INFO] Keycloak WildFly Elytron SAML Adapter .............. SUCCESS [ 0.200 s]
[INFO] Keycloak Wildfly SAML Adapter Subsystem ............ SUCCESS [ 0.519 s]
[INFO] Keycloak SAML Wildfly Integration .................. SUCCESS [ 0.004 s]
[INFO] Keycloak SAML Servlet Filter ....................... SUCCESS [ 0.083 s]
[INFO] Keycloak SAML Client Adapter Modules ............... SUCCESS [ 0.013 s]
[INFO] Keycloak Installed Application ..................... SUCCESS [ 0.083 s]
[INFO] Keycloak JAX-RS OAuth Client ....................... SUCCESS [ 0.091 s]
[INFO] Keycloak Jetty Core Integration .................... SUCCESS [ 0.144 s]
[INFO] Keycloak Jetty 9.4.x Integration ................... SUCCESS [ 0.125 s]
[INFO] Keycloak Jetty Integration ......................... SUCCESS [ 0.004 s]
[INFO] Keycloak Servlet Filter Adapter Integration ........ SUCCESS [ 0.129 s]
[INFO] Keycloak Tomcat Integration ........................ SUCCESS [ 0.003 s]
[INFO] Keycloak Tomcat Core Integration ................... SUCCESS [ 0.081 s]
[INFO] Keycloak Tomcat Integration ........................ SUCCESS [ 0.080 s]
[INFO] Keycloak Undertow Integration ...................... SUCCESS [ 0.198 s]
[INFO] spring-boot-container-bundle ....................... SUCCESS [ 0.087 s]
[INFO] Keycloak Spring Security Integration ............... SUCCESS [ 0.189 s]
[INFO] Keycloak Spring Boot Adapter Core .................. SUCCESS [ 0.247 s]
[INFO] Keycloak Spring Boot 2 Integration ................. SUCCESS [ 0.139 s]
[INFO] Keycloak Wildfly Elytron OIDC Adapter .............. SUCCESS [ 0.165 s]
[INFO] Keycloak Wildfly Adapter Subsystem ................. SUCCESS [ 0.354 s]
[INFO] Keycloak WildFly Integration ....................... SUCCESS [ 0.003 s]
[INFO] Keycloak OIDC Client Adapter Modules ............... SUCCESS [ 0.004 s]
[INFO] Keycloak Adapters .................................. SUCCESS [ 0.004 s]
[INFO] Keycloak Misc ...................................... SUCCESS [ 0.004 s]
[INFO] Keycloak :: Spring :: Boot ......................... SUCCESS [ 0.004 s]
[INFO] Keycloak :: Spring :: Boot :: Default :: Starter .. SUCCESS [ 0.025 s]
[INFO] keycloak-test-helper ............................... SUCCESS [ 0.160 s]
[INFO] Keycloak Quarkus Server Deployment ................. SUCCESS [ 0.505 s]
[INFO] Keycloak Quarkus Server App ........................ SUCCESS [ 4.881 s]
[INFO] Keycloak Quarkus Server Distribution ............... SUCCESS [ 18.246 s]
[INFO] Keycloak Quarkus Test Parent ....................... SUCCESS [ 0.005 s]
[INFO] Keycloak Quarkus Server Integration tests .......... SUCCESS [ 0.522 s]
[INFO] Keycloak TestSuite ................................. SUCCESS [ 0.003 s]
[INFO] DB Allocator Plugin ................................ SUCCESS [ 0.260 s]
[INFO] Keycloak Arquillian Integration TestSuite .......... SUCCESS [ 0.004 s]
[INFO] Test apps .......................................... SUCCESS [ 0.003 s]
[INFO] Test apps distribution ............................. SUCCESS [ 0.280 s]
[INFO] Keycloak Authz: PhotoZ Test Parent ................ SUCCESS [ 0.015 s]
[INFO] Keycloak Authz Test: Photoz RESTful API ............ SUCCESS [ 0.257 s]
[INFO] Keycloak Authz Tests: Photoz HTML5 Client .......... SUCCESS [ 0.171 s]
[INFO] Keycloak Authz Tests: Hello World Example .......... SUCCESS [ 0.014 s]
[INFO] Keycloak Authz: Servlet Authorization Test ......... SUCCESS [ 0.065 s]
[INFO] Keycloak Authz: Simple Servlet App with Policy Enforcer SUCCESS [ 0.014 s]
[INFO] integration-arquillian-test-apps-servlets .......... SUCCESS [ 0.171 s]
[INFO] Keycloak Test App Profile JEE ...................... SUCCESS [ 0.066 s]
[INFO] integration-arquillian-test-apps-cors-parent ....... SUCCESS [ 0.003 s]
[INFO] Angular Product Portal JS .......................... SUCCESS [ 0.071 s]
[INFO] JAX-RS Database Service Using OAuth Bearer Tokens .. SUCCESS [ 0.064 s]
[INFO] spring-boot-adapter-app ............................ SUCCESS [ 0.158 s]
[INFO] Servers ............................................ SUCCESS [ 0.004 s]
[INFO] Auth Server ........................................ SUCCESS [ 0.004 s]
[INFO] Auth Server Services ............................... SUCCESS [ 0.004 s]
[INFO] Auth Server Services - Testsuite Providers Deployment SUCCESS [ 0.052 s]
[INFO] Auth Server Services - Testsuite Providers ......... SUCCESS [ 0.665 s]
[INFO] Keycloak TestSuite Utils ........................... SUCCESS [ 0.481 s]
[INFO] Test Util .......................................... SUCCESS [ 0.256 s]
[INFO] Auth Server - Undertow ............................. SUCCESS [ 0.340 s]
[INFO] App Server ......................................... SUCCESS [ 0.005 s]
[INFO] App Server - SPI ................................... SUCCESS [ 0.052 s]
[INFO] App Server - JBoss ................................. SUCCESS [ 0.004 s]
[INFO] App Server - Tomcat ................................ SUCCESS [ 0.004 s]
[INFO] App Server - Undertow .............................. FAILURE [ 0.182 s]
[INFO] App Server - Jetty Parent .......................... SKIPPED
[INFO] Keycloak Arquillian Integration TestSuite - Cache Server SKIPPED
[INFO] Keycloak Arquillian Integration TestSuite - Cache Server - Infinispan SKIPPED
[INFO] Keycloak Arquillian Integration TestSuite - Cache Server - Legacy SKIPPED
[INFO] Tests .............................................. SKIPPED
[INFO] Base TestSuite ..................................... SKIPPED
[INFO] Other Tests Modules ................................ SKIPPED
[INFO] Tests for logical storage layer .................... SKIPPED
[INFO] Keycloak Examples .................................. SKIPPED
[INFO] Keycloak Examples - Admin Client ................... SKIPPED
[INFO] Provider Examples .................................. SKIPPED
[INFO] REST Example ....................................... SKIPPED
[INFO] Domain Extension Example ........................... SKIPPED
[INFO] Authenticator Example .............................. SKIPPED
[INFO] JS Console ......................................... SKIPPED
[INFO] Keycloak Examples - Kerberos Credential Delegation . SKIPPED
[INFO] Themes Examples .................................... SKIPPED
[INFO] SAML Examples ...................................... SKIPPED
[INFO] Keycloak SAML Adapter as a Servlet Filter .......... SKIPPED
[INFO] LDAP Demo Application .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:00 min
[INFO] Finished at: 2022-11-07T19:38:42+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1-jboss-1:compile (default-compile) on project integration-arquillian-servers-app-server-undertow: Compilation failure
[ERROR] /Users/davidebozza/Documents/git/keycloak/testsuite/integration-arquillian/servers/app-server/undertow/src/main/java/org/keycloak/testsuite/arquillian/undertow/UndertowAppServer.java:[239,22] no suitable method found for toString(java.io.InputStream,java.nio.charset.Charset)
[ERROR] method org.apache.commons.io.IOUtils.toString(java.io.InputStream,java.lang.String) is not applicable
[ERROR] (argument mismatch; java.nio.charset.Charset cannot be converted to java.lang.String)
[ERROR] method org.apache.commons.io.IOUtils.toString(byte[],java.lang.String) is not applicable
[ERROR] (argument mismatch; java.io.InputStream cannot be converted to byte[])
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :integration-arquillian-servers-app-server-undertow
Every suggestion is welcome thanks!
All reactions