I'm trying to get the keycloak quick start applications connected to keycloak and learn how the authorization mechanism works.
I'm following this guide: https://www.keycloak.org/docs/latest/authorization_services/#_getting_started_overview
I've done these steps:
- Installed Ubuntu 20.
sudo apt install openjdk-8-jre-headless
sudo apt install openjdk-8-jdk-headless
- Downloaded and extracted Keycloak-15 on my system.
- Downloaded and extracted Wildfly-10 on my system.
./bin/standalone.sh -Djboss.socket.binding.port-offset=100
for Keycloak so its running at http://localhost:8180- Configured Keycloak adapter for Wildfly instance.
./bin/standalone.sh
for Wildfly so its running at http://localhost:8080- Copied keycloak.json file obtained from keycloack server to keycloak-quickstarts/app-authz-jee-vanilla/config
mvn clean package wildfly:deploy
in app-authz-jee-vanilla directory.
Following the guide I mentioned, I'm stuck in the Build, Deploy, and Test Your Application section. I try to build the app-authz-jee-vanilla app but I keep getting this error:
[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.2.2.Final:deploy (default-cli) on project keycloak-app-authz-jee-vanilla: Execution default-cli of goal org.wildfly.plugins:wildfly-maven-plugin:1.2.2.Final:deploy failed: Plugin org.wildfly.plugins:wildfly-maven-plugin:1.2.2.Final or one of its dependencies could not be resolved: Could not find artifact sun.jdk:jconsole:jar:jdk at specified path /usr/lib/jvm/java-8-openjdk-amd64/jre/../lib/jconsole.jar
Looks like maven cannot deal with some dependency. But I dont know how to solve it!
I would be thankful if anybody can solve this problem.