keycloak-spring-demo
keycloak-spring-demo copied to clipboard
Unable to build any of the project
FAILURE: Build failed with an exception.
-
What went wrong: Could not resolve all dependencies for configuration ':database-service:compile'.
Could not download keycloak-core.jar (org.keycloak:keycloak-core:1.2.1.Smartling-SNAPSHOT) Could not GET 'https://repo.fugu.io/artifactory/ext-snapshot-local/org/keycloak/keycloak-core/1.2.1.Smartling-SNAPSHOT/keycloak-core-1.2.1.Smartling-20160202.205628-14.jar'. SSL peer shut down incorrectly
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Had the same issue, simply update the keycloak version to a final one, e.g. '1.3.0.Final' is the closest to the used snapshot version. Tested it and works.
chvndb's solution works.
Hi,
I've the same problem and get the following error message with "Bad Gateway":
FAILURE: Build failed with an exception.
- What went wrong: Could not resolve all dependencies for configuration ':database-service:compile'.
Could not resolve org.keycloak:keycloak-spring-security-adapter:1.2.1.Smartling-SNAPSHOT. Required by: org.keycloak.springsecurity.demo:database-service:unspecified Unable to load Maven meta-data from https://repo.fugu.io/artifactory/ext-snapshot-local/org/keycloak/keycloak-spring-security-adapter/1.2.1.Smartling-SNAPSHOT/maven-metadata.xml. > Could not GET 'https://repo.fugu.io/artifactory/ext-snapshot-local/org/keycloak/keycloak-spring-security-adapter/1.2.1.Smartling-SNAPSHOT/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Is there an other way to solve the problem.
Thank you. Best regards.
Having the same issue:
FAILURE: Build failed with an exception.
- What went wrong: Could not resolve all dependencies for configuration ':database-service:compile'.
Could not resolve org.keycloak:keycloak-spring-security-adapter:1.2.1.Smartling-SNAPSHOT. Required by: org.keycloak.springsecurity.demo:database-service:unspecified Unable to load Maven meta-data from https://repo.fugu.io/artifactory/ext-snapshot-local/org/keycloak/keycloak-spring-security-adapter/1.2.1.Smartling-SNAPSHOT/maven-metadata.xml. > Could not GET 'https://repo.fugu.io/artifactory/ext-snapshot-local/org/keycloak/keycloak-spring-security-adapter/1.2.1.Smartling-SNAPSHOT/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
I'm already on a Final version keycloak-3.4.1.Final
Hello guys,
I have the same problems when running Keycloak-3.4.1.Final
So I decide to build an updated version of it based on object marshaling , custom converters, custom filter ...
You can find the project on my personal github account keycloak-multi-modules-spring-security
Waiting for your comments and advises ! ☺️
@hosnimed So you did not really pinpoint what caused the issue ?
There a lot of problem caused the issue, in nutshell :
- The project based on an old customized version of keycloak based on Smartling-1.2.1
- The documentation for spring security 4.2.0 says that the current spring security version 4.2.0 is compatible with 4.3.4 and 4.0.x.
- The Spring Boot 1.5.X (that I am using) require more attentions in version compatibility Finally, What I want to use is the Keycloak 3.4.X version , so I have to do some refactoring.
I use in build.gradle
maven { url "https://mvnrepository.com/artifact/" } //at subprojects repositories ext { keycloakVersion = '1.3.1.Final' keycloakExtrasVersion = '0.3.0-RELEASE' resteasyVersion = '3.0.10.Final' springVersion = '4.1.6.RELEASE' springBootVersion = '1.2.3.RELEASE' springSecurityVersion = '3.2.7.RELEASE' }
and work.