【问题标题】:How can I build HornetQ from source?如何从源代码构建 HornetQ?
【发布时间】:2013-05-09 21:57:29
【问题描述】:

我对 Maven 并不陌生。但我不知道为什么我的maven使用1.1.1版本的maven-plugin,hornet-maven-plugin。我说版本的原因是存储库没有版本。所以我想我必须更改存储库的插件版本。

源代码在这里(https://github.com/verystrongjoe/hornetq/tree/master/examples/jms/clustered-queue)。

我将它下载到我的本地磁盘。我导入到我的 Eclipse 中。 但结果是如下错误。

Failure to find org.hornetq:hornetq-maven-plugin:pom:1.1.1-SNAPSHOT in http://repository.jboss.org/nexus/content/groups/public was cached in the local 
 repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced

如果你去仓库 http://repository.jboss.org/nexus/content/groups/public ,有 1.1.0 或 1.0.0。

请让我解释一下..提前谢谢。

【问题讨论】:

  • POM 中的依赖关系是什么?

标签: maven hornetq


【解决方案1】:

你可以在超级POM的Line 716看到答案:

     <plugin>
        <groupId>org.hornetq</groupId>
        <artifactId>hornetq-maven-plugin</artifactId>
        <version>1.1.1-SNAPSHOT</version>
     </plugin>

听起来您可能没有足够的知识在 github 源代码的边缘工作。也许您应该改用最近的release tags 之一?

【讨论】:

  • 谢谢,我解决了这个问题,将插件版本更改为 1.1.0。如果版本是 2.3.0.CR2,最新版本,它可以正常工作。
【解决方案2】:

您正在分叉并尝试使用一个开发中 SNAPSHOT 版本的HornetQ。这通常比使用已发布版本需要更多的工作。提示一:考虑仅使用 HQ 的已发布版本。

如果没有,请注意:

请注意,每个链接的内容都很小。我本可以在这里复制他们的内容,但我没有。我的观点是:这些项目有 README 文件可以解决您的问题,您应该经常查看 README

【讨论】:

    猜你喜欢
    • 2010-11-17
    • 2021-10-07
    • 2012-01-21
    • 2012-06-13
    • 2012-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多