Issue
What is the difference between adding dependencies via IntelliJ IDEA (when I download the library to my computer and add it to the project via Project Structure -> Libraries) and via Maven (when I specify group id, artifact id and version in pom.xml)? And which of these ways is better?
Solution
Using maven is better when we collaborate with others, so we keep the version in pom file and the build will be stable.
When we use IDE, we'll download the latest version of the dependency and it may lead to build issues.
I suggest to use Maven, or use Maven plugin which updates pom file.
Answered By - Aswin Suresh
Answer Checked By - Mildred Charles (JavaFixing Admin)