1

我刚刚下载了 Keycloak 的 1.8 版(名为 Demo 的版本),其中包含一些已经在 J​​Boss 应用程序服务器上完成的项目,这些项目应该很容易测试。

我安装了该产品,并且可以访问它。

我检查了先决条件:

  • java -version > 1.8.0_65 (需要1.8.*)
  • mvn -version > 3.10.0(需要 3.2.1)
  • git --version > 已安装

只需按照 YouTube 中的教程(“Keycloak 教程:基础知识第 2 部分”),当我进入文件所在的目录时pom.xml,我启动“mvn jboss-as:deploy”,但 JBoss 向我显示此错误:



    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO] 
    [INFO] Examples ........................................... SUCCESS [  2.093 s]
    [INFO] Customer Portal - Secured via Valve ................ FAILURE [  6.766 s]
    [INFO] Customer Portal CLI ................................ SKIPPED
    [INFO] Customer Portal JS ................................. SKIPPED
    [INFO] Product Portal ..................................... SKIPPED
    [INFO] EAR example ........................................ SKIPPED
    [INFO] Admin Access Example ............................... SKIPPED
    [INFO] Angular Product Portal JS .......................... SKIPPED
    [INFO] JAX-RS Database Service Using OAuth Bearer Tokens .. SKIPPED
    [INFO] Simple OAuth Client ................................ SKIPPED
    [INFO] Simple OAuth Client Using CDI and JSF .............. SKIPPED
    [INFO] Service Account Example App ........................ SKIPPED
    [INFO] Offline Access Portal .............................. SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 10.568 s
    [INFO] Finished at: 2016-01-15T00:35:37+01:00
    [INFO] Final Memory: 34M/168M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.5.Final:deploy (default-cli) on project customer-portal-example: Could not execute goal deploy on /home/user/keycloak-demo-1.8.0.CR1/examples/unconfigured-demo/customer-app/target/customer-portal.war. Reason: I/O Error could not execute operation '{
    [ERROR] "operation" => "read-attribute",
    [ERROR] "address" => [],
    [ERROR] "name" => "launch-type"
    [ERROR] }': java.net.ConnectException: JBAS012144: Could not connect to remote://localhost:9999. The connection timed out
    [ERROR] -> [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/MojoExecutionException
    [ERROR] 
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn  -rf :customer-portal-example

我应该如何解决这个错误?

4

0 回答 0