InterviewSolution
Saved Bookmarks
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is difference between Apache Ant and Maven? |
| Answer» | |
| 2. |
What is a Mojo? |
| Answer» | |
| 3. |
What does the "You cannot have two plugin executions with the same (or missing) elements" message mean? |
| Answer» | |
| 4. |
How to stop the propagation of plugins to child POMs? |
| Answer» | |
| 5. |
How can you run the clean plugin automatically during the build? |
| Answer» | |
| 6. |
What is dependency exclusion ? |
| Answer» | |
| 7. |
What is the use of optional dependency? |
| Answer» | |
| 8. |
What is a system dependency? |
| Answer» | |
| 9. |
How do you exclude dependency? |
| Answer» | |
| 10. |
How can you build your project offline? |
| Answer» | |
| 11. |
What are the benefit of storing JARS/external dependencies in local repository instead of remote one? |
| Answer» | |
| 12. |
Why profile is used in Maven? |
| Answer» | |
| 13. |
What are the elements in POM that a profile can modify when specified in the POM? |
| Answer» | |
| 14. |
How profiles are specified in Maven? |
| Answer» | |
| 15. |
If you do not define any information, where does your pom inherits that information from? |
| Answer» | |
| 16. |
What is a project's fully qualified artifact name? |
| Answer» | |
| 17. |
What is the use of execution element in pom file? |
| Answer» | |
| 18. |
What is the value for packaging element in pom for a project that is purely meta-data? |
| Answer» | |
| 19. |
What are the default values for packaging element? If there is no packaging element defined? What is the default value for that? |
| Answer» | |
| 20. |
How do you reference a property defined in your pom.xml file? |
| Answer» | |
| 21. |
What is the minimal set of information for matching a dependency references against a dependencyManagement section ? |
| Answer» | |
| 22. |
What is dependency scope? Name all the dependency scope. |
| Answer» | |
| 23. |
How Maven handles and determines what version of dependency will be used when multiple version of an artifact are encountered? |
| Answer» | |
| 24. |
What does dependency management mean in the context of transitive dependency? |
| Answer» | |
| 25. |
What is transitive dependency in Maven? |
| Answer» | |
| 26. |
What is difference between Snapshot and Version? |
| Answer» | |
| 27. |
What is SNAPSHOT in Maven? |
| Answer» | |
| 28. |
What is the command to create a new project based on an archtype? |
| Answer» | |
| 29. |
What is Archetype? |
| Answer» | |
| 30. |
What are the things you need to define for each external dependency? |
| Answer» | |
| 31. |
When does Maven use External Dependency concept? |
| Answer» | |
| 32. |
What are the types of Maven Plugins? |
| Answer» | |
| 33. |
Why are Maven Plugins used? |
| Answer» | |
| 34. |
What is the sequence in which Maven searches for dependency libraries? |
| Answer» | |
| 35. |
What is Remote Repository? |
| Answer» | |
| 36. |
What is Central Repository? |
| Answer» | |
| 37. |
What is the command to install JAR file in local repository? |
| Answer» | |
| 38. |
What is the default location for your local repository? |
| Answer» | |
| 39. |
What is local repository? |
| Answer» | |
| 40. |
What types of Maven repository? |
| Answer» | |
| 41. |
What is a Maven Repository? |
| Answer» | |
| 42. |
How can you activate profiles? |
| Answer» | |
| 43. |
What are different types of Build Profiles? |
| Answer» | |
| 44. |
What is Build Profile? |
| Answer» | |
| 45. |
What phases does a Site Lifecycle consist? |
| Answer» | |
| 46. |
What phases does a Clean Lifecycle consist? |
| Answer» | |
| 47. |
What would this command do mvn clean dependency:copy-dependencies package? |
| Answer» | |
| 48. |
What is a goal in Maven terminology? |
| Answer» | |
| 49. |
What are the phases of a Maven Build Lifecycle? |
| Answer» | |
| 50. |
What would the command mvn clean do ? |
| Answer» | |