I'm working on building a Sonar plugin for IntelliJ Idea (a fairly recent source snapshot can be found here).
On simple projects with .ipr for them it works fine, but I'm having trouble making inspections run using a pom.xml as a project file.
I run the following command (I changed the layout to make it easier to read):
Which fails with:
[WARNING] Overriding profile: 'online' (source: settings.xml) with new instance from source: settings.xml
The JDK is not configured properly for this project. Inspection cannot proceed.
null not found
Which begs the question: How does IDEA choose the JDK name for a project imported from a pom.xml
Notice that I'm passing JDK_HOME
as property for a JDK named "1.6", but that only works if I have an .ipr
file that uses "1.6" as it's JDK name.
Any help is appreciated,