Launch IntelliJ Inspections via Maven / TeamCity

I have a Maven project and am trying to configure TeamCity to run IntelliJ inspections . The TeamCity documentation refers to the IntelliJ documentation , but I don’t find anything useful there. Can you tell me how to set it up?

+3
source share
1 answer

The documentation was wrong, you cannot reference the pom.xml profile directly from pom.xml . Thanks for noticing, we fixed it.

In the case of a Maven project, you need to open it in IDEA, define a validation profile, export the profile to an XML file, and transfer it to the project version control. In the runer settings of TeamCity Inspections, specify the path to the XML file of the verification profile relative to the project root.

+4
source

Source: https://habr.com/ru/post/1236655/


All Articles