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

Unable to build any of the project #1

Open
imran-raza opened this issue Jul 20, 2016 · 8 comments
Open

Unable to build any of the project #1

imran-raza opened this issue Jul 20, 2016 · 8 comments

Comments

@imran-raza
Copy link

FAILURE: Build failed with an exception.

BUILD FAILED

@chvndb
Copy link

chvndb commented Apr 23, 2017

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.

@pourgholi
Copy link

chvndb's solution works.

@capjoh
Copy link

capjoh commented Nov 22, 2017

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.

@stephaneeybert
Copy link

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

@hosnimed
Copy link

hosnimed commented Dec 24, 2017

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 ! ☺️

@stephaneeybert
Copy link

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

@hosnimed
Copy link

hosnimed commented Dec 25, 2017

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.

@bilalkosker
Copy link

bilalkosker commented Mar 16, 2018

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.

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

No branches or pull requests

7 participants