From the course: Java for All Platforms: Desktop, Web, and Mobile Development
Unlock the full course today
Join today to access over 23,500 courses taught by industry experts.
Managing dependencies with Maven - Java Tutorial
From the course: Java for All Platforms: Desktop, Web, and Mobile Development
Managing dependencies with Maven
- [Instructor] Currently in our project, our dependencies are managed by our project structure. So if I go to file and then project structure, and then select modules, I'm going to see this JUnit module here. So what many would argue is a better way to manage dependencies is to use something like Maven or Gradle, which are frameworks that are made for handling dependencies. Let's take a look at taking this project and converting it to a Maven project and handling our dependencies using Maven. So with this selected, so I've selected JUnit5.8.1, I'm going to hit the remove button right here, hit apply and then hit okay. Now that's going to break our test and that's fine. We no longer see JUnit inside of external libraries. And what we're going to do is convert this project to a Maven project by right-clicking the project and choosing add framework support. And just a side note, when I tested this on Windows, this…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.