Bird
0
0

A developer adds a new module but the parent pom.xml does not list it under <modules>. What is the likely effect?

medium📝 Debug Q7 of 15
Spring Boot - Advanced Patterns
A developer adds a new module but the parent pom.xml does not list it under <modules>. What is the likely effect?
AThe new module will build and run normally
BThe new module will build but fail at runtime
CThe new module will not be built when running the parent build
DThe parent build will fail immediately
Step-by-Step Solution
Solution:
  1. Step 1: Understand module listing in parent pom

    Modules must be listed in the parent <modules> section to be included in the build lifecycle.
  2. Step 2: Consequence of omission

    If omitted, the module is ignored during parent build but can be built separately.
  3. Final Answer:

    New module not built with parent build -> Option C
  4. Quick Check:

    Module omission in parent pom = not built with parent [OK]
Quick Trick: List all modules in parent pom to include in build [OK]
Common Mistakes:
  • Expecting automatic build of unlisted modules
  • Assuming build fails immediately without listing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes