使用 HornetQ 独立服务器

Using the HornetQ standalone server

我下载了 2.5.0 源代码,并通过 cd 到 hornetq-master 目录和 运行 mvn clean install(我也尝试过 mvn clean package)来构建它。构建报告成功。

根据我找到的最新的 2.4.0 手册,

"In the distribution you will find a directory called bin.

cd into that directory and you will find a Unix/Linux script called run.sh and a windows batch file called run.bat"

如果我转到 hornetq-master/distribution/hornetq/src/main/resources/bin,我会看到那些文件。我没有看到任何类型的目标目录,这是我在构建后所期望的。

如果我执行 run.bat,我得到一个错误 "Could not find or load main class org.hornetq.cli.HornetQ"。

如果我查看 hornetq.cmd 文件,它似乎正在尝试使用 %HORNETQ_HOME%\lib 的类路径,在我的例子中是 hornetq-master/distribution/hornetq/src/main/resources/lib,不存在。

所以,我假设我构建的这个不正确。谁能告诉我应该如何构建它?

这里手册中的 "distribution" 似乎指的是官方分发的 .zip 文件,而不是从源代码构建的东西。