hmvictor / nb-sonarlint

A SonarLint plugin for Netbeans
Other
8 stars 7 forks source link

Check ancestor projects for project key #3

Open awatry opened 4 years ago

awatry commented 4 years ago

Multi-module maven projects might define a project key at the top-level which is used for all modules.

This MR allows the MvnProjectAnalyzer to inspect the parent project's pom for a project key (recursively).

Currently only works for multi-module maven projects which are part of the same repository. A future enhancement would be to download/calculate the effective pom for the maven project so that property inheritance actually works (my employer actually uses this along with some interpolated property variables... which is another thing that the effective model would help with).