I could not understand what Maven is, looking at formal definitions.

I am starting very much with Java, recently trying to use some existing libraries, and suddenly Maven came out between them. I don’t understand how to read the project page on the Apache website, what maven is.

Why is this required? I use some library that asks me to install Maven and some additional steps, but I don't know what it is for. Some places that I see are designed to automate the build process, but I can do it easily through NetBeans.

Any simple explanations should be highly appreciated.

EDIT: Thanks everyone!

Also explain that if the library I use contains a .pom file, what does this mean for me. I am building a web application using some libraries, most of which contain .pom files. What does that tell me? Does it make me use Maven?

+3
source share
5 answers

Maven is a stubborn build tool and dependency management system.

  • build tool : it handles the process of turning your files .javainto files .class, possibly transforming your resources and packaging into .jareither .waror .earor .tar.gzor or .zip. In this aspect, it is similar to Apache Ant .
  • : : , (.. ), (, , ). Apache Ivy.
  • : , . , . , Maven.

maven POM, , Maven . pom.xml. , Maven.

+4

Maven Ant: , , .

Java JAR, Ivy, JAR , JAR, JAR, .

, . , . , , .

Ant . Ant , Maven. , , Maven.

+2

@Jigar Jishi :

Maven , . XML ( , ANT), .

Maven - , , , Maven , , Maven. - , , Maven , .

, , , . , , . , , , ..:)

+1

Maven is an assembly tool (a tool that will pack your application into some type assembly (.jar, .war, .ear) in simple words.

But it is more than just a building tool, it supports modulation, transition dependency material and much more ..

0
source

I would recommend taking a look at the Sonatype Web site ( here ).

This company is very involved in the world of Maven;)

0
source

All Articles