Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)

What is the difference between Maven and Jenkins? Both support automated builds and automated execution of JUnits. If so, are they complementary, or mutually exclusive? When should one can be used over the other?

1 Answer

0 votes
by (19.4k points)

Maven is building tool/environment. Jenkins is a CI (continuous integration) tool.

Maven is more like a replacement for Ant.

It assists the building of the project through plugins e.g build and version control, JUnit tests, etc...

It manages dependencies of your project. you define how a project should be built(plugins), and what libraries are needed (dependencies) in a pom.xml file.

Jenkins as a smart job scheduler, can not assists you with tasks like version control or JUnit test, however, it can indirectly assists you with all this, by making calls to the pom.xml file in your project. And Jenkins gives you the power to decide when to call the pom.xml file, based on what condition to call, and what you want to do with the outcome. and Jenkins can listen to different events, 

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...