keycloak-spring-demo icon indicating copy to clipboard operation
keycloak-spring-demo copied to clipboard

Unable to build any of the project

Open imran-raza opened this issue 9 years ago • 8 comments

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

imran-raza avatar Jul 20 '16 04:07 imran-raza

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 avatar Apr 23 '17 14:04 chvndb

chvndb's solution works.

pourgholi avatar Jun 11 '17 10:06 pourgholi

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.

capjoh avatar Nov 22 '17 14:11 capjoh

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

stephaneeybert avatar Dec 20 '17 14:12 stephaneeybert

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 avatar Dec 24 '17 20:12 hosnimed

@hosnimed So you did not really pinpoint what caused the issue ?

stephaneeybert avatar Dec 25 '17 11:12 stephaneeybert

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.

hosnimed avatar Dec 25 '17 11:12 hosnimed

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.

bilalkosker avatar Mar 16 '18 08:03 bilalkosker