【问题标题】:ElasticSearch doesn't appear in Eclipse project explorerElasticSearch 没有出现在 Eclipse 项目资源管理器中
【发布时间】:2012-04-28 06:02:35
【问题描述】:

我正在使用 ElasticSearch 为我的 Web 应用程序实现搜索引擎,我正在使用 Play 框架。 当我尝试安装 ElasticSearch 模块时,它在命令提示符中写入它已成功安装,但它没有像 CRUD 等其他模块那样出现在项目资源管理器中,当我尝试使用 @ElasticSearchable 时也会引发错误它不能被解析成一个类型。

我确实尝试停止应用程序并将其重新导入 Eclipse,但没有任何改变。

这是我在命令提示符下得到的。我认为这可能是我将弹性搜索文件夹放在错误的位置,我已将其添加到模块文件夹中,这是正确的位置吗?

~        _            _
~  _ __ | | __ _ _  _| |
~ | '_ \| |/ _' | || |_|
~ |  __/|_|\____|\__ (_)
~ |_|            |__/
~
~ play! 1.2.4, http://www.playframework.org
~
~ Resolving dependencies using C:\Users\ahmed\Documents\play\play-1.2.4\se\conf\dependencies.yml,
~
~       play->elasticsearch {0.4} (from playContributedModules)
~
~ WARNING: Some dependencies could not be downloaded (use --verbose for details),
~
~       play->elasticsearch {0.4}: missing artifact
~
~ No dependencies to install
~
~ *****************************************************************************
~ WARNING: These dependencies are missing, your application may not work properly (use --verbose for details),
~
~       play->elasticsearch {0.4}: missing artifact
~ *****************************************************************************
~
~ Some dependencies are still missing.
~

【问题讨论】:

  • 您能否发布链接或详细信息以帮助重新创建您所做的安装?
  • 我已经添加了我在命令提示符中得到的内容

标签: eclipse playframework elasticsearch


【解决方案1】:

您没有详细描述您的安装过程,但您是否按照ElasticSearch module page 上的说明进行操作?

在本地安装完模块后(显然你已经成功完成了),你需要将它添加到你项目的dependencies.yml文件中:

require:
    - play -> elasticsearch {version}

然后,在命令提示符下,为您的项目执行 play dependenciesplay eclipsify 命令。转到 Eclipse,刷新你的工作区,你应该已经准备好了。

【讨论】:

  • 是的,我确实安装成功并将其添加到 dependencies.yml 文件并将其添加到 application.conf module.elasticsearch=${play.path}/modules/elasticsearch-0.4 elasticsearch.local =false elasticsearch.client=mynode1:9200,mynode2:9200 在客户端模式下运行它但是为什么我要重新使我的项目黯然失色?
  • 运行 eclipsify 将更新您的 Eclipse 项目的引用。
  • 查看命令提示符输出,您是否在dependencies.yml 文件中的版本号周围留下了{} 字符?他们不需要(或允许,真的)。只需输入- play -> elasticsearch 0.4
猜你喜欢
  • 2017-06-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-01-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多