How to set up a pom.xml to process certain directories with Maven for Sonar?

You can build the top level pom and use the sonar. SkippedModules or sonar. IncludedModules property to set up the list of modules to build.

This won't show each module as a separate project at the top level of sonar, but if you go into the project and select "modules", then you'll see each one listed, as if it were a separate project.

I'm not sure what I'm doing wrong, but it's not working. I moved pom. Xml out of base, set sourceDirectory to base, testSourceDirectory to base/unittests, and added this to the properties: base,base/subdir1,base/subdir3/subsubdir2,base/subdir4, and it says: Embedded error: PicoLifecycleException: method 'public void org.sonar.batch.index.DefaultIndex.start()', instance 'org.sonar.batch.index.

DefaultIndex@15004dd, java.lang. RuntimeException: wrapper Can not find the root project from the list of Maven modules – Aistina Jul 18 at 20:21 Okay, in a maven project, each module, including the top level one (base in your example) needs to have a pom. Xml in it.Do you have that?

And the value that you give to sonar as the "module" to include or exclude should be the artifactId of the module, not the name of the directory it lives in. – Ryan Stewart Jul 18 at 20:58 Could you please give an example both of what the pom. Xml in base, and the one in one of the modules should look like?

Thanks! – Aistina Jul 18 at 21:09 If you use git, you can clone my testbed repo: git clone git://github.Com/zzantozz/testbed. Git tmp.

It's a multimodule Java project. The main thing to note is that the pom at the root level has a section named "modules", which names all the modules that come under that pom. That makes it so that when you build the root pom, all the modules get built, too.

– Ryan Stewart Jul 18 at 21:31 @Aistina: you could also read about inheritance and aggregation in Maven. – Ryan Stewart Jul 18 at 21:32.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions