Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What is the difference between adding dependencies via Maven and via IDE?

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 :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading