Do you have questions ? We got the answers!

Ask a question:

Can u explain what is Maven all about and what is dependency?

Open 2 Answers 42 Views
I am new to Java and Maven. Can u explain what is Maven all about and what is dependency?

2 Answers


As per the test automation services Apache Maven is a Software project management and comprehension tool. It is based on the concept of a project object model (POM).Maven can perform many operations like manage a project's build, reporting and documentation from a central piece of information.

Maven provides developers a complete build lifecycle framework. Development team can automate the project's build infrastructure in almost no time as Maven uses a standard directory layout and a default build lifecycle.
Maven provides developers ways to manage following:
• Builds
• Documentation
• Reporting
• Dependencies
• SCMs
• Releases
• Distribution
• Mailing list

Maven Dependency:
Maven's dependency-handling mechanism is organized around a coordinate system identifying individual artifacts such as software libraries or modules.Dependency management is one of the features of Maven that is best known to users. Through the local repository,projects developed on a single machine can depend on each other . The local repository acts both as a cache for downloaded dependencies and as it is a centralized location for locally built artifacts.

For a single project, it is not difficult to manage dependencies but for handling a project with multiple modules Maven is capable enough for maintaining control and stability.
Section for maven dependency is a mechanism for centralizing dependency information. For a set of projects that inherits a common parent, it's promising to put all information about
the dependency in one common POM and have references to artifacts in the child POMs.


answered Jul 28 by rajeevtechexpert (224 points)
commented Jul 28 by ChatBot (196 points)
Hi Rajeev,

Thank you for posting the answer. Kindly specify the source.

Thank you
commented Jul 31 by rajeevtechexpert (224 points)
The Maven Source Plugin creates a jar archive of the source files of project. By default, this jar file is created in the target directory of the project.
The Maven Source Plugin have 5 goals:

1. source:aggregate :The aggregates sources are for all modules in an aggregator project.
2. source:jar: This is used to bundle the main sources of project into a jar archive.
3. source:test-jar: It is used to bundle the test sources of the project into a jar archive.
4. source:jar-no-fork : This is similar to jar but does not fork the build lifecycle.
5. source:test-jar-no-fork :This is similar to test-jar but does not fork the build lifecycle.

POM Syntax For Maven Source Plugin:

What is maven?

Maven is a project management tool. It will help you define project structure and define group ID, artifact name, your CI URL and many more things about the project you can include into Maven.

Most of the time we use maven to manage the dependencies.

So, when you use Maven, it will put all your dependency into the central location and all your projects will use dependency from there. It will ultimately reduce your project size.

Say, you have the project where you are using Selenium and Cucumber dependency
your project size will be around 25 MB.

If you use Maven, all you need is just one pom.xml file and inside pom.xml file you can define your Selenium and Cucumber dependency. So, maven will automatically download it and add it to your build path.

So, your project size will be reduced to some KBs like approx 500 KBs.
Also, updating and managing dependencies will be easy with maven.

What is the dependency?
Dependencies are set of the JAR files that are required by your project

answered Jul 18 by anonymous

Top Contributors

  • 4970 pointsstbadmin

    34 questions 454 answers218 comments

  • 430 pointsSunilBhaskar

    40 questions 14 answers26 comments

  • 425 pointsMehedi

    36 questions 3 answers14 comments

  • 354 pointsSoft Tester

    43 questions 0 answers4 comments

  • 342 pointssumitkumarwatts

    0 questions 12 answers0 comments

  • 327 pointsKeeshaGolden

    0 questions 17 answers2 comments

  • 322 pointsVipul Sharma

    44 questions 0 answers24 comments

  • 310 pointsvysh.sharma

    25 questions 0 answers0 comments

  • 267 pointsOnkar_Nimje

    33 questions 15 answers15 comments

  • 258 pointsVanitha

    26 questions 0 answers6 comments