信息 - 启动 Jetty 服务器,但未完成

INFO - Started Jetty Server, but does not finish

我正在尝试设置 Dashbuilder。我已经解决了几个问题(一个是在其他人的帮助下,谢谢)。我正处于必须使用命令

编译、构建和 运行 程序的地步
./buildandrun.sh h2

事情按预期开始,但随后就在终端中的“[INFO] 启动 Jetty 服务器”处停止。

我让它静置了几个小时,没有任何进展。我尝试了 运行 -X 标志,但没有出现该步骤的额外信息。当我尝试访问 http://localhost:8080/dashbuilder 以查看程序是否启动时,出现 503 错误并查看

HTTP ERROR: 503

Problem accessing /dashbuilder. Reason:

Service Unavailable

Powered by Jetty:// 9.3.9.v20160517

我怎样才能更详细地了解发生这种情况的原因和原因?

SH 文件的内容是:

#!/bin/bash
if [ "" = "" ] ; then
   echo "Build & Run the application for a given database."
   echo ""
   echo "USAGE: buildandrun.sh [h2|postgres]"
else
  echo "-----------------------------------------------------------------"
  echo "Building & Running the application for the '' database..."
  echo "------------------------------------------------------------------"

  cd ..
  mvn clean install -P ,jetty    

  export MAVEN_OPTS="-Xms1024M -Xmx2048M -XX:MaxPermSize=512m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
  cd modules/dashboard-showcase/
  mvn jetty:run -P ,jetty
fi

jetty-maven-pluginjetty:run 目标正是这样做的。

它正常运行 Jetty,并等待用户终止它(使用 TERM、KILL、Ctrl+C、使用 Shutdown 工具)

那个 mvn jetty:run 命令从不 returns。

也许您想使用 mvn jetty:startmvn jetty:stop

参见:https://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html#jetty-start-goal