10

I'm trying to run sonar on entire project using maven, but for some reason it skips submodules and analyse only root module. Is there any explanation of such a strange behaviour?

Any help is greatly appreciated!

Here is maven final output:

Here is maven final output


ADDITION

mvn clean install doesn't skip anything, but mvn sonar:sonar do.


11
  • Can you post your Pom ? And is there something before the output you added to your question ? Normally, modules are skipped when an error has been encountered before. Feb 25, 2013 at 9:00
  • What is the packaging of these submodules? Feb 25, 2013 at 9:45
  • @AndrewLogvinov, the packaging for all of the modules are "pom"
    – mr.nothing
    Feb 25, 2013 at 10:52
  • @SamuelEUSTACHI, No error is showed, moreover I have ANALYSIS SUCCESSFULL for all the modules.
    – mr.nothing
    Feb 25, 2013 at 10:53
  • 1
    The Sonar Maven Plugin is an "aggregator" plugin. It's executed only on the root module. That's the reason why Maven flags sub-modules as SKIPPED. Mar 5, 2013 at 22:28

2 Answers 2

13

The SonarQube Maven Plugin is an aggregator plugin. It's executed only on the root module. That's the reason why Maven flags sub-modules as SKIPPED, even if they are correctly analysed.

0

I do not find full description, but have youtried sonar.includedModules=rootModule?

Source

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.