Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Cannot run test phase in obp-api module

未关闭
#1,518 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
scala
领域
build-system

调研方向

从 obp-api/pom.xml 开始,检查 net.catte:scalapb-maven-plugin 的配置及其 protocVersion 设置,然后在 obp-api 模块中运行 mvn test,以重现不支持平台的错误。当 master 分支的配置选择受支持的 protoc 版本,并且无需本地编辑 pom.xml 即可成功运行 mvn test 时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

I have downloaded the master branch of this project and run "mvn test" successfully in obp-api module last week. Today, it did not work suddenly. When I run "mvn test", the error message is
[ERROR] Failed to execute goal net.catte:scalapb-maven-plugin:1.2:compile (default) on project obp-api: Error compiling protobuf files: Unsupported platform: protoc-3.0.0-osx-x86_64.exe -> [Help 1]

In my local maven repository, I found package "com/github/os72/protoc-jar/3.5.1.1". So that I open the
pom.xml in obp-api module and edit it as below:

<plugin> <groupId>net.catte</groupId> <artifactId>scalapb-maven-plugin</artifactId> <version>1.2</version> <configuration> <protocVersion>v3.5.1</protocVersion> <!-- I added this property --> <javaOutput>false</javaOutput> <inputDirectory>${basedir}/src/main/protobuf</inputDirectory> <outputDirectory>${basedir}/src/main/scala</outputDirectory> <grpc>true</grpc> </configuration>
It works.
May I know what is the root cause of this issue? Please help to update the source in master branch so that this issue will not happen for other people again.

主要语言
Scala
星标
1.7k
派生
483
平均合并
5 小时 16 分钟
30 天内合并 PR
18

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OpenBankProject/OBP-API 的其他 Issue

查看 OpenBankProject/OBP-API 的全部 Issue

相似的 Issue

更多 Scala Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。