在单个Maven模块生成源中以编程方式禁用Eclipse警告?

发布于 2025-02-03 04:53:13 字数 253 浏览 2 评论 0原文

我有一个多模型Maven项目,其中一个模块负责在我们的OpenApi.yaml文件上调用OpenApi Generator在项目的其余部分。这效果很好。

不幸的是,这些产生的来源在进口Maven项目后引发了2022 - 03年Eclipse的许多警告。因此,我想知道是否只能让M2E调整此模块的一些编译器设置,导入项目时,或者我唯一的选择是在Eclipse中设置此设置,然后仔细提交所得的配置文件?

我们的目标是尽可能接近“纯Maven”解决方案。可以做到吗?

I have a multi-module Maven project, in which one module is responsible for invoking OpenAPI generator on our openapi.yaml file resulting in a lot of Java sources under target/ which is then compiled into an artifact used in the rest of the project. This works well.

Unfortunately these generated sources trigger quite a few warnings in Eclipse 2022-03 after importing the Maven project. I would therefore like to know if it is possible to have m2e adjust a few compiler settings for this module only, when importing the project, or if my only option is to set this in Eclipse and then carefully commit the resulting configuration files?

Our goal is to have as near a "pure Maven" solution as possible. Can this be done?

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

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

发布评论

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