读取自述文件后,我一直试图运行\keycloak-master\examples\demo-template\customer-app
下的客户应用程序。
我的Keycloak正在从可执行文件运行,并且我正在使用keycloak-4.1.0.Final.zip
软件包在标准模式下运行它。
运行密钥斗篷后,我尝试在keycloak-master\examples\demo-template\testrealm.json
下导入领域,并且所有操作都可以进行到现在。
当我尝试在keycloak-master\examples\demo-template\customer-app > mvn clean install
下构建customerapp
我收到此错误:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Customer Portal - Secured via Valve 4.2.0.Final-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.keycloak:keycloak-core:jar:4.2.0.Final-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.keycloak:keycloak-adapter-core:jar:4.2.0.Final-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.230 s
[INFO] Finished at: 2018-07-27T14:31:08+05:30
[INFO] Final Memory: 13M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project customer-portal-example: Could not resolve dependencies for project org.keycloak.example.demo:customer-portal-example:war:4.2.0.Final-SNAP
SHOT: The following artifacts could not be resolved: org.keycloak:keycloak-core:jar:4.2.0.Final-SNAPSHOT, org.keycloak:keycloak-adapter-core:jar:4.2.0.Final-SNAPSHOT: Could not fin
d artifact org.keycloak:keycloak-core:jar:4.2.0.Final-SNAPSHOT -> [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/DependencyResolutionException
有人可以帮忙吗?我要去哪里错了?
答案 0 :(得分:0)
您的webApp找不到4.2.0.Final-SNAPSHOT.jar,您可以在maven存储库中验证此4.2.0.Final-SNAPSHOT.jar。
maven存储库的最终版本为4.1.0 Final
https://mvnrepository.com/artifact/org.keycloak/keycloak-core/4.1.0.Final
您可以尝试在pom.xml中更改为此版本
我希望有帮助