Can someone explain how IntelliJ, Maven and pom.xml work together? -


if add dependency entering in pom.xml, added "java library" in project structure > libraries. uses maven add library. right?

however, in project structure > libraries, there option add maven projects, these not added pom.xml , appear maven libraries opposed java libraries in project view. why? what's difference?

it's convenient use new library > maven because can search libraries. however, libraries not being added pom.xml seems drawback because way some libraries in pom.xml , others not.

could explain how works?

about maven - primary goal support development stable state of. in order attain goal there several areas of concern maven attempts deal with:

  • allowing transparent migration new features
  • providing uniform build system
  • making build process easy
  • providing quality project information

project object model or pom 1 of important units of work in maven. know it's xml file contains information project , configuration details used maven build project. yes - if add .jar dependency in both pom , project structure it'll automatically create such in vcs too.

based on experience intellij idea it's important remember add new .jar in subversion (right click on .jar > subversion > add). couple of times itellij idea set local change , don't commit file - , believe me it's annoying deal it. maybe important thing pom helps avoiding called 'jar hell'. in pom set goals, when executing task or goal, maven looks pom in current directory. reads pom, gets needed configuration information, executes goal.

also tip - when updating pom , maven prefer use filesystem , cmd. doing i've managed avoid not one-or-two intellij 'misreadings'. helpful "lifecycle" commands. e.g. clean/verify/install


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -