通过Maven / TeamCity运行IntelliJ检查 [英] Running IntelliJ inspections via Maven/TeamCity

查看:123
本文介绍了通过Maven / TeamCity运行IntelliJ检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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?

推荐答案

文档不正确,你不能直接参考检查配置文件 pom.xml 。感谢您注意,我们已修复它。

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

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

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.

这篇关于通过Maven / TeamCity运行IntelliJ检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆