未知的Java Maven汇编错误:R1549AADB

发布于 2025-02-09 19:58:52 字数 542 浏览 2 评论 0原文

尽管将Java 8项目模块化和迁移到Java 17遇到了未知的Maven错误。

该项目具有非模块化依赖性。

常规类和测试类(JUNIT5)编译并通过Eclipse(无需调用Maven)良好。

常规类用Maven编译罚款,但是当Maven编译测试类(JUNIT5)错误时,例如报告:

[ERROR] /C:/some/path/to/a/source/file.java:[11,15] cannot access org
  R1549aadb

其中org被认为是软件包名称的第一个部分,遇到的其他示例包括<代码> java ,javax

行号似乎总是对应于导入语句。在这种情况下[11]是:导入org.junit.jupiter.api.assertions;

任何熟悉这种错误的人?

有人知道什么<代码> R1549AADB 是指?

Whilst modularizing and migrating a Java 8 project to Java 17 an unknown maven error has been encountered.

The project has non-modular dependencies.

The regular classes and test classes (JUnit5) compile and run fine through Eclipse (without invoking maven).

The regular classes compile fine with maven, however when maven compiles the test classes (JUnit5) errors such as are reported:

[ERROR] /C:/some/path/to/a/source/file.java:[11,15] cannot access org
  R1549aadb

Where org is assumed to be the first portion of a package name, other examples encountered include java, javax.

The line number always seems to correspond to an import statement. in this case line [11] was: import org.junit.jupiter.api.Assertions;

Anyone familiar with this kind of error?

Does anyone know what R1549aadb refers to?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文