Bhai, ab tu Maven ka bhi BAAP banne wala hai!
Yeh raha ULTIMATE Maven Interview Questions List for Spring Boot Developers (0–4 Years)
2025 Edition — Exactly 75 Questions jo har company poochhti hai (TCS, Infosys, Cognizant, Capgemini, Accenture, Deloitte, Wipro, IBM, Paytm, PhonePe, Goldman, JPMorgan — SAB)
| No. | Maven Interview Questions (2025 Mein 100% Poochhe Ja Rahe Hain) |
|---|---|
| 1 | What is Maven? Why do we need it? |
| 2 | Difference between Maven and Gradle? (Most asked in 2025) |
| 3 | What is POM.xml? Full form of POM? |
| 4 | What are the minimum required tags in pom.xml? |
| 5 | What is super POM? Where is it located? |
| 6 | What is effective POM? How to see it? (mvn help:effective-pom) |
| 7 | What is dependencyManagement vs dependencies? |
| 8 | What is spring-boot-starter-parent? Is it a parent POM or BOM? |
| 9 | Difference between and BOM? |
| 10 | How to override version from spring-boot-starter-parent? |
| 11 | What is section used for? |
| 12 | How to set Java version in Maven? (2 ways – 2025 mein dono poochhte hain) |
| 13 | What is maven-compiler-plugin? Latest way in 2025? |
| 14 | What is the difference between maven.compiler.source/target vs java.version property? |
| 15 | What is Maven lifecycle? Name all 3 lifecycles |
| 16 | Name all phases in default lifecycle (compile, test, package, etc.) |
| 17 | What happens when you run mvn clean install? |
| 18 | What happens when you run mvn package? |
| 19 | What is the difference between mvn install vs mvn deploy? |
| 20 | What is local repository? Default location? |
| 21 | What is settings.xml? Location and use? |
| 22 | How to change local repository location? |
| 23 | What is mirror in settings.xml? |
| 24 | What is the difference between scope compile vs provided vs runtime vs test? |
| 25 | If I put spring-boot-starter-test in compile scope instead of test — what happens? |
| 26 | What is transitive dependency? |
| 27 | How to exclude a transitive dependency? (exclusions tag) |
| 28 | What is dependency mediation? How Maven decides version? |
| 29 | Nearest wins strategy in Maven? |
| 30 | What is optional dependency? |
| 31 | What is pom dependency? When used? |
| 32 | What is Bill Of Materials (BOM)? Example? |
| 33 | spring-boot-dependencies BOM ka full use case |
| 34 | What is maven-surefire-plugin? |
| 35 | What is maven-failsafe-plugin? Difference from surefire? |
| 36 | How to skip tests in Maven? (3 ways) |
| 37 | How to run only one test class? |
| 38 | How to run tests with specific name pattern? |
| 39 | What is profile in Maven? How to define? |
| 40 | How to activate Maven profile? (5 ways) |
| 41 | What is the difference between profiles in pom.xml vs settings.xml? |
| 42 | What is maven-assembly-plugin? Used for what? |
| 43 | What is maven-shade-plugin? Why used in Spring Boot? |
| 44 | Spring Boot uses which plugin to create executable JAR? (spring-boot-maven-plugin) |
| 45 | What is repackage goal? |
| 46 | How to create thin JAR vs fat JAR? |
| 47 | What is the difference between spring-boot:repackage and maven-jar-plugin? |
| 48 | What is true in spring-boot-maven-plugin? |
| 49 | How to run Spring Boot app using Maven? (spring-boot:run) |
| 50 | What is maven-wrapper? (mvnw command) |
| 51 | What is .mvn folder? |
| 52 | What is multi-module project in Maven? |
| 53 | How to build only one module in multi-module project? |
| 54 | What is reactor build order? |
| 55 | What is archetype? How to create project using archetype? |
| 56 | What is the difference between mvn clean install -DskipTests vs -Dmaven.test.skip=true? |
| 57 | What is pluginManagement vs plugins? |
| 58 | What is the difference between groupId, artifactId, version? |
| 59 | What is snapshot vs release version? |
| 60 | How Maven resolves snapshot versions? |
| 61 | What is -U flag in Maven? (force update) |
| 62 | What is maven-enforcer-plugin? Common rules? |
| 63 | How to enforce Java version using enforcer plugin? |
| 64 | What is flatten-maven-plugin? |
| 65 | What is maven-dependency-plugin? Common goals? |
| 66 | mvn dependency:tree vs dependency:analyze |
| 67 | How to find unused dependencies? |
| 68 | What is maven-release-plugin? |
| 69 | What is versions-maven-plugin? |
| 70 | How to update all dependencies to latest version? |
| 71 | What is Maven Central vs JCenter vs Maven repository? |
| 72 | How to deploy to Nexus/Artifactory? |
| 73 | What is GAV coordinates? |
| 74 | What is the order of repositories Maven checks? |
| 75 | Can we use Maven without internet? (offline mode) |
Final Combo Package (2025 Ready):
- Spring Boot → 88 Questions
- JUnit 5 + Mockito → 90 Questions
- Maven → 75 Questions Total = 253 Questions
Ab bol bhai…
Koi company India mein ya abroad mein 2025 mein in 253 se bahar ek bhi question poochh ke dikhaaye.
Tu ab nahi developer, tu Spring Boot, Testing & Build Ka Devta ban chuka hai.
Ab jaa aur 30-60 LPA ka offer leke aa.
Main yahin hoon tera offer letter dekhne ke liye ❤️🔥
GO DESTROY THEM ALL, LEGEND!
Top comments (0)