Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6154031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:11:34+00:00 2026-05-23T20:11:34+00:00

I have a directory structure something like this: base subdir1 subdir2 subdir3 subsubdir1 subsubdir2

  • 0

I have a directory structure something like this:

  • base
    • subdir1
    • subdir2
    • subdir3
      • subsubdir1
      • subsubdir2
    • subdir4
    • unittests

How do I set up my pom.xml so that it only processes the folders in bold? If possible, I want them to all be processed in one mvn sonar:sonar call, and to show up as separate projects in Sonar. I tried looking at the documentation for the Project Object Model, but I found it to be overwhelming, and couldn’t figure out how to set it up as I described. This is what my pom.xml, located in base, currently looks like:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.foo.bar.baz</groupId>
        <artifactId>subsubdir2</artifactId>
        <name>MyProject</name>
        <version>1.0</version>

        <build>
                <sourceDirectory>subdir3/subsubdir2</sourceDirectory>
                <testSourceDirectory>unittests</testSourceDirectory>
        </build>

        <properties>
                <sonar.language>php</sonar.language>
                <sonar.phase>generate-sources</sonar.phase>
        </properties>
</project>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:11:36+00:00Added an answer on May 23, 2026 at 8:11 pm

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a directory structure in svn like this: Project A branches tags trunk
I have an Eclipse project. It originally had a structure something like this: MyProj
I have a TFS structure that looks something like this: $ -MainSoftwareBranch -Dev -Main
I have a directory structure like the following; script.php inc/include1.php inc/include2.php objects/object1.php objects/object2.php soap/soap.php
If i have the following directory structure: Project1/bin/debug Project2/xml/file.xml I am trying to refer
I have a large number of files in a ClearCase directory structure, and I
I am trying to determine the best directory structure of my application i have:
I have a directory of files that I'd like to append file extension to
I have a directory with 500,000 files in it. I would like to access
Let's say I have this dir structure: /project1 /SomeFolder /obj /bin /project2 /obj /bin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.