java.lang.noclassdeffounderror:testprotos/authmethodresponseproto

dgsult0t  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(377)

我试图使用maven从github构建hadoop公共项目(truk)。但生成失败,引发以下错误,

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project hadoop-common: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: java.lang.NoClassDefFoundError: TestProtos/AuthMethodResponseProto: TestProtos.AuthMethodResponseProto -> [Help 1]

我没有找到所提到的类的任何依赖项。这和我的开发环境有关吗。?还是我错过了什么。?

jobtbby3

jobtbby31#

请试着做 maven clean install 在项目文件夹上或右键单击项目->“作为maven测试运行”。这将自动下载丢失的插件。然后,右键单击project->“updatemaven project”,它将删除错误或添加

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-report-plugin</artifactId>
  <version>2.17</version>
</plugin>

给你的家属。

相关问题