Expected JAR name LoadError
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- backend, build-system
调研方向
Start by reproducing the documented Gradle, gem, vendor, and RSpec commands in the issue, then inspect the gemspec's jar-dependencies output. Compare the installed artifact with Logstash's registry check at logstash-core/lib/logstash/plugins/registry.rb#L155. Done means the plugin installs normally and Logstash accepts the generated JAR without --no-verify.
由索引模型根据 Issue 内容生成。
描述
Hi, I saw other similar issues. Unfortunately, none actually address how to solve the problem and I guess this means that their projects started working magically.
I made this issue here because it seems to be the most active of the example repositories.
I followed the logstash documentation on java output plugins to make the following plugin:
https://github.com/hashgraph/logstash-output-hedera
I did a fresh clone, and ran the following (after bumping the version):
./gradlew clean
./gradlew build
./gradlew gem
bundle install
bundle exec rake vendor
bundle exec rspec
bundle exec rake publish_gem
I installed logstash with homebrew (read: linuxbrew on Ubuntu 18.04) @ version 7.6.1 and ran logstash-plugin install logstash-output-hedera, which reports a successful install of the plugin
The gemspec reports the plugin jar file should be named logstash-output-hedera-0.0.5.jar, which is what I find in the jar-dependencies folder for the installed logstash after the successful install.
That should be what is checked for by logstash: https://github.com/elastic/logstash/blob/master/logstash-core/lib/logstash/plugins/registry.rb#L155 (I think?)
Yet,
[main] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (LoadError) Java plugin 'logstash-output-hedera' does not contain a single jar file with the plugin's name and version
Works like a charm if I install locally:
logstash-plugin install --no-verify --local logstash-output-hedera-0.0.5.gem
Bruh, help
- 主要语言
- Java
- 星标
- 19
- 派生
- 39
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
logstash-plugins/logstash-filter-java_filter_example 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 55/100
logstash-plugins/logstash-filter-java_filter_example#27 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 1/5 1 小时以内 新手友好度 45/100
-
难度 3/5 1-2 天 新手友好度 25/100
logstash-plugins/logstash-filter-java_filter_example#15 · 1 条评论 ·
查看 logstash-plugins/logstash-filter-java_filter_example 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
objectionary/jeo-maven-plugin#1811 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
hiero-ledger/hiero-block-node#3693 ·
-
area/dependencies kind/cve severity/critical source/scan-dependencies status/triage
难度 2/5 1-3 小时 新手友好度 82/100
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 84/100
-
proposal
难度 2/5 1-3 小时 新手友好度 78/100
beemdevelopment/Aegis#1840 ·