通过 Maven/TeamCity 运行 IntelliJ 检查

发布于 2024-10-03 21:42:30 字数 367 浏览 0 评论 0原文

我有一个 Maven 项目,我正在尝试配置 TeamCity 来运行 IntelliJ 的检查它。 TeamCity 文档 让我参考 IntelliJ 的文档,但我在那里没有找到任何有用的东西。你能告诉我你如何配置它吗?

I have a Maven project, and I'm trying to configure TeamCity to run IntelliJ's inspections on it. TeamCity's documentation refers me to IntelliJ's documentation, but I didn't find anything useful there. Can you refer me to how do you configure it?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

時窥 2024-10-10 21:42:30

文档不正确,您无法直接从 pom.xml 引用检查配置文件。感谢您的关注,我们已经修复了它。

对于 Maven 项目,您需要在 IDEA 中打开它,定义检查配置文件,将配置文件导出到 XML 文件并将其提交到项目的版本控制中。在 TeamCity Inspections 运行程序设置中指定检查配置文件 XML 文件相对于项目根的路径。

The documentation was incorrect, you can't reference inspections profile directly from the pom.xml. Thanks for noticing, we've fixed it.

In case of the Maven project you need to open it in IDEA, define the inspections profile, export the profile into XML file and commit it into the version control with the project. In the TeamCity Inspections runner settings specify the path to the inspections profile XML file relative to the project root.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文