Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 2.14 KB

maven.md

File metadata and controls

34 lines (29 loc) · 2.14 KB

Maven

What is the difference between Maven and Gradle?

You can think of Gradle as goodness of Ant and Maven put together minus the noise of XML. And scriptability with groovy is very big plus.

  • Gradle gives you conventions but still gives you power to override them easily.
  • Gradle build files are less verbose as they are written in groovy.
  • It provides very nice DSL for writing build tasks.
  • Has lot of good plugins and vibrant ecosystem
  • When to use Gradle and When to use Maven ?
Relative links:

How will work Maven in the case of multiple version of the same dependency?

For Java it doesn't matter how many versions of a class you provide. The default classloader will just pick the first one on the classpath it can find.

Relative links:

What is the dependency management in Maven?

The dependency management section is a mechanism for centralizing dependency information. When you have a set of projects that inherits a common parent it's possible to put all information about the dependency in the common POM and have simpler references to the artifacts in the child POMs.

Relative links:

Does maven support inheritance for pom files?

yes

Relative links:

Home Page