Académique Documents
Professionnel Documents
Culture Documents
(https://tekslate.com/)
(http://www.facebook.com/share.php?u=https://tekslate.com/interview+questions-in-maven/)
(http://twitter.com/share?url=https://tekslate.com/interview+questions-in-maven/)
(https://plus.google.com/share?url=https://tekslate.com/interview+questions-in-maven/)
(http://www.linkedin.com/shareArticle?mini=true&url=https://tekslate.com/interview+questions-in-
maven/&title=Maven Interview Questions&source=https://tekslate.com)
https://tekslate.com/interview+questions-in-maven/ 1/11
10/6/2017 Maven Interview Questions
Maven is a project management tool. It provides the developer a complete build lifecycle framework. On executing Maven
commands, it will look for POM file in Maven; it will run the command on the resources described in the POM.
-Build
-Documentation
-Reporting
-Dependencies
-SCMs
-Releases
-Distribution
-Mailing list
In Maven, POM (Project Object Model) is the fundamental unit of work. It is an XML file (https://tekslate.com/steps-create-xml-
source-qualifier-transformation-informatica/) which holds the information about the project and configuration details used to build
a project by Maven.
Usually an artifact is a JAR file which gets arrayed to a Maven repository. One or more artifacts a maven build produces such as
compiled JAR and a sources JAR.
A Maven repository is a location where all the project jars, library jars, plugins or any other particular project related artifacts are
stored and can be easily used by Maven (https://tekslate.com/maven-training).
https://tekslate.com/interview+questions-in-maven/ 2/11
10/6/2017 Maven Interview Questions
-Documenting projects
-Reporting
Inclined to build a profession as Maven Developer? Then here is the blog post on
Online Maven Training (https://tekslate.com/maven-training).
-Validate
-Compile
-Test
-Package
-Install
-Deploy
List out the build, source and test source directory for POM in Maven?
-Build = Target
-Source = src/main/java
-Test = src/main/test
-Parent Pom
-Project Pom
-Settings
-CLI parameters
Explain how you can produce execution debug output or error messages?
To produce execution debug output you could call Maven with X parameter or e parameter.
To run test classes in Maven, you need surefire plugin, check and configure your settings in setting.xml and pom.xml for a
property named test.
What it does?
Maven simplifies the above mentioned problems. It does mainly following tasks.
https://tekslate.com/interview+questions-in-maven/ 3/11
10/6/2017 Maven Interview Questions
It provides uniform build process (maven project can be shared by all the maven projects)
It provides project information (log document, cross referenced sources, mailing list, dependency list, unit test reports etc.)
-Builds
-Documentation
-Reporing
-SCMs
-Releases
-Distribution
Interested in mastering Maven? Learn more about Maven Tutorials (https://tekslate.com/tutorials/maven/) in this blog post.
-Compile java code and build jar, war and ear files for deployment and release.
-Support for cross platform (UNIX Windows (https://tekslate.com/tutorials/unixlinux/)) and IDEs(eclipse, Netbeasn, Intellij)
Transitive dependency in Maven means that it is not necessary to discover and specify the libraries that our own dependencies
require, Maven includes them automatically.
Maven will download always the specified version. In case of SNAPSHOT Maven will download the latest SNAPSHOT.
What is a Mojo?
A mojo is a Maven plain Old Java Object . Mojo is associated with a Maven goal. A custom plugin is a set of related Mojos (or
goals) in a single plugin artifact.
This command erase the target directory with all the build data before starting the building process.
-Validate
https://tekslate.com/interview+questions-in-maven/ 4/11
10/6/2017 Maven Interview Questions
-Compile
-Test
-Package
-Integration-tests
-Verify
-Install
-Deploy
Summary
Reviewer Ram
Author Rating
Enroll NowMeet
() the author LEAVE A MESSAGE
At TekSlate, we are trying to create high quality tutorials and articles, if you think any
information is incorrect or want to add anything to the article, please feel free to get in touch with
us at info@tekslate.com, we will update the article in 24 hours.
Leave a Message
Your email address will not be published. Required fields are marked *
Name*
Email*
Website
Comment
https://tekslate.com/interview+questions-in-maven/ 5/11
10/6/2017 Maven Interview Questions
Comment
POST COMMENT
(https://tekslate.com/tutorials/apache-flume/)
(https://tekslate.com/amazon-aws-tutorials/)
(https://tekslate.com/tutorials/datamodeling/)
https://tekslate.com/interview+questions-in-maven/ 6/11
10/6/2017 Maven Interview Questions
https://tekslate.com/interview+questions-in-maven/ 7/11
10/6/2017 Maven Interview Questions
https://tekslate.com/interview+questions-in-maven/ 8/11
10/6/2017 Maven Interview Questions
https://tekslate.com/interview+questions-in-maven/ 9/11
10/6/2017 Maven Interview Questions
https://tekslate.com/interview+questions-in-maven/ 10/11
10/6/2017 Maven Interview Questions
https://tekslate.com/interview+questions-in-maven/ 11/11