Keycloak:使用maven部署项目时出错

时间:2016-01-14 23:43:16

标签: java eclipse maven jboss keycloak

我刚刚下载了Keycloak的1.8版本(名为Demo的版本),其中包含一些已在JBoss应用服务器上完成的项目,应该可以轻松测试。

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

我检查了预先要求:

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

只需按照YouTube中的教程(" Keycloak Tutorial:The Basics Part 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

我该如何解决这个错误?

0 个答案:

没有答案