|
| 1 | + What is Apache Maven? |
| 2 | + What problem does Maven solve? |
| 3 | + What are the benefits of using Maven? |
| 4 | + How do you define a project in Maven? |
| 5 | + What is a POM (Project Object Model)? |
| 6 | + Explain the purpose of the pom.xml file. |
| 7 | + What is the default packaging type in Maven? |
| 8 | + What is a Maven repository? |
| 9 | + What are the two main types of repositories in Maven? |
| 10 | + How does Maven handle project dependencies? |
| 11 | + Explain the concept of a transitive dependency in Maven. |
| 12 | + What is a Maven plugin? |
| 13 | + |
| 14 | +Maven Commands: |
| 15 | + |
| 16 | + How do you create a new Maven project? |
| 17 | + What is the command to build a Maven project? |
| 18 | + How do you clean a Maven project? |
| 19 | + Explain the purpose of the mvn clean install command. |
| 20 | + What is the purpose of the mvn clean package command? |
| 21 | + How do you run tests using Maven? |
| 22 | + What is the difference between mvn install and mvn deploy? |
| 23 | + How do you skip tests during the build process? |
| 24 | + How do you specify a specific Maven goal to execute? |
| 25 | + |
| 26 | +Project Structure and Configuration: |
| 27 | + |
| 28 | + What is the src directory in a Maven project? |
| 29 | + Explain the purpose of the src/main/java directory. |
| 30 | + What does the src/test/java directory contain? |
| 31 | + What is the purpose of the src/main/resources directory? |
| 32 | + How do you specify project information like groupId and artifactId? |
| 33 | + What is the parent POM? |
| 34 | + How do you specify project dependencies in the POM? |
| 35 | + What is a dependency scope in Maven? |
| 36 | + |
| 37 | +Dependency Management: |
| 38 | + |
| 39 | + What is a Maven dependency? |
| 40 | + How do you add a dependency to the pom.xml file? |
| 41 | + What are the common dependency scopes in Maven? |
| 42 | + Explain the difference between compile, provided, runtime, and test scopes. |
| 43 | + How do you exclude transitive dependencies? |
| 44 | + What is the purpose of the dependencyManagement section in the POM? |
| 45 | + How can you resolve version conflicts between dependencies? |
| 46 | + |
| 47 | +Build Lifecycle and Phases: |
| 48 | + |
| 49 | + What is a Maven build lifecycle? |
| 50 | + Explain the difference between a Maven phase and a goal. |
| 51 | + What are the three build lifecycles in Maven? |
| 52 | + Name the phases in the default build lifecycle. |
| 53 | + What is the clean phase used for? |
| 54 | + What happens in the validate phase? |
| 55 | + Explain the purpose of the compile phase. |
| 56 | + How does the package phase differ from the install phase? |
| 57 | + What is the site phase used for? |
| 58 | + |
| 59 | +Profiles and Plugins: |
| 60 | + |
| 61 | + What is a Maven profile? |
| 62 | + How do you define a profile in the POM? |
| 63 | + What is a Maven plugin? |
| 64 | + How do you configure a plugin in the POM? |
| 65 | + What is the purpose of the groupId, artifactId, and version elements in a plugin configuration? |
| 66 | + What is the purpose of the execution element in a plugin configuration? |
| 67 | + How do you execute a specific goal of a plugin? |
| 68 | + |
| 69 | +Customization and Configuration: |
| 70 | + |
| 71 | + How can you customize the Maven build process? |
| 72 | + What is a custom Maven archetype? |
| 73 | + How do you create a custom archetype? |
| 74 | + What is the .m2/settings.xml file used for? |
| 75 | + How do you specify a proxy server in Maven? |
| 76 | + How do you change the default local repository location? |
| 77 | + |
| 78 | +Maven Repository: |
| 79 | + |
| 80 | + What is the Central Repository? |
| 81 | + How do you search for artifacts in the Central Repository? |
| 82 | + How can you specify a remote repository in the POM? |
| 83 | + What is the purpose of snapshots and releases in Maven repositories? |
| 84 | + How do you deploy artifacts to a Maven repository? |
| 85 | + Explain the differences between snapshot and release versions. |
| 86 | + |
| 87 | +Multi-Module Projects: |
| 88 | + |
| 89 | + What is a multi-module project in Maven? |
| 90 | + How do you define a parent POM for a multi-module project? |
| 91 | + What is the purpose of the <modules> element in the parent POM? |
| 92 | + How do you build and deploy a multi-module project? |
| 93 | + How does dependency management work in a multi-module project? |
| 94 | + |
| 95 | +Build Profiles: |
| 96 | + |
| 97 | + What is a build profile in Maven? |
| 98 | + How do you activate a build profile? |
| 99 | + Can you activate multiple profiles simultaneously? |
| 100 | + How do you specify a profile's activation criteria? |
| 101 | + |
| 102 | +Maven Repository Managers: |
| 103 | + |
| 104 | + What is a Maven repository manager? |
| 105 | + Name a popular Maven repository manager. |
| 106 | + How do repository managers improve dependency management? |
| 107 | + What are some benefits of using a repository manager? |
| 108 | + |
| 109 | +Maven Best Practices: |
| 110 | + |
| 111 | + What are some best practices for organizing project structure in Maven? |
| 112 | + How can you improve build efficiency in Maven? |
| 113 | + What is the importance of versioning in Maven? |
| 114 | + What are some strategies for dealing with version conflicts? |
| 115 | + |
| 116 | +Troubleshooting: |
| 117 | + |
| 118 | + How do you debug Maven build failures? |
| 119 | + What should you do if you encounter "Out of Memory" errors during the build? |
| 120 | + How can you resolve issues with downloading dependencies? |
| 121 | + How do you generate a Maven debug log? |
| 122 | + |
| 123 | +Advanced Topics: |
| 124 | + |
| 125 | + What is the purpose of the Maven Assembly Plugin? |
| 126 | + How can you create an executable JAR using Maven? |
| 127 | + What is the purpose of the Maven Shade Plugin? |
| 128 | + Explain the concept of Maven Archetypes. |
| 129 | + How do you create a custom Maven plugin? |
| 130 | + |
| 131 | +Integration and Tooling: |
| 132 | + |
| 133 | + How does Maven integrate with continuous integration tools like Jenkins? |
| 134 | + What are some popular IDEs that have Maven integration? |
| 135 | + How does Maven integrate with version control systems like Git? |
| 136 | + |
| 137 | +Performance and Optimization: |
| 138 | + |
| 139 | + How can you speed up Maven builds? |
| 140 | + Explain the concept of incremental builds in Maven. |
| 141 | + What is the purpose of the .m2/repository directory? |
| 142 | + |
| 143 | +Migration and Upgrades: |
| 144 | + |
| 145 | + How can you migrate a project from Ant to Maven? |
| 146 | + What is the process for upgrading Maven versions? |
| 147 | + How can you migrate a project from Maven 2 to Maven 3? |
| 148 | + |
| 149 | +Maven Ecosystem: |
| 150 | + |
| 151 | + What are some alternative build tools to Maven? |
0 commit comments