java - I can't understand what Maven is. I've red a lot about it but still don't get it -


it says maven build tool. ide? 'building'? mean it?

assume want write java code. open eclipse, write class, export jar file , uses it. called building? if yes why need maven?

it says manages dependencies. if i'm writing class needs dependencies, should know , import them shouldn't i?

please understand maven ad can eclipse can't do? , please don't keep saying 'it's build tool'

is ide?

no not. (you may irritated listening yes build tool, why? check below)

well 'building'?

  • building bringing artifacts(classes,resources,xmls,jsons,etc) , introduce them each other. can work fulfill goals.
  • also maven has structure, test classes goes in particular folder, test resource in particular folder, java source classes in particular folder, , on can check it.
    this has advantage, when deploy our project on jenkins knows find test classes, find test resources, find configuration files , many more locations.

when talking huge project there many things configure , without built tool big mess.

well if i'm writing class needs dependencies, should know , import them shouldn't i?

say have dependency of 100 jars , need update them after few days, go on downloading each jar online , add manually code.

also circulate project 100 jars other members working on project.

thats cumbersome...

with maven, edit pom version want , downloaded central repository. else add local repo.

you open eclipse, write class, export jar file , uses it. called building?

yes is.

if yes why need maven?

again same theory, working on big project 5 custom jars , have team members in india,japan,us working in collaboration. above theory can imagine problems have face.

i hope got gist of maven is.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -