Maven is currently at version 3.3.9 at the time of this series. Always make sure you download the latest version. The system requirements of this version include JDK 1.7 or higher to execute and that is OS independent. So, it doesn’t matter if you run Windows, Mac or Linux, you must have the JDK 1.7 or higher installed. You will need about 10MB of disk space, the Maven install is relatively small since most of its power resides in the plugins which will be discussed later. There is a space requirement for the Maven repository which is at least 500MB, but this can change based on usage. All startup scripts are included as either shell scripts or Windows batch files. The Apache Maven Project website has detailed installation instructions.
- [Instructor] To get started using Apache Maven, start by downloading Maven from the maven.apache.org website. From this page we can either use the link on the left that says Download, or we can just use the link in the middle where it says Use Download. Maven is currently at version 3.3.9 at the time of this series. Always make sure you download the latest version. Let's look quickly at the system requirements. Probably one of the most important ones is that it requires Java Development Kit or JDK 1.7 or higher.
There is no minimum memory requirement, and as far as disk space goes, you need approximately 10 MB for the Maven installation itself, but in addition to that, additional space will be needed for your local Maven repository. The size might vary depending on your usage, but expect at least 500 MB, and there's no minimum requirement for your operating system. Let's scroll down and take a look at the files. One of the nice things is under Files, there is a link in the first paragraph there that takes you to installation instructions.
We'll take a look at that in a minute, but for right now, under the link we have Binary tar file, a Binary zip file, and two source files. I'm gonna go ahead and download the apache-maven-3.3.9-bin.zip file. It doesn't take long to download and you can see it's only 8.2 MB. Let's switch over to the installation instructions next. It's always a good idea to check the installation instructions in case something has changed from the time of this video.
The first thing we need to do is extract the archive file that I just download, so I'm gonna go down to my archive, and I'm gonna click on it and I'm going to click on Extract, and I'm gonna say Extract all. The Maven website recommends that you extract the file to the Program Files directory on your C: drive so I'm gonna do that. I'm gonna click on Browse, I'm gonna go into my C: drive, to my Program Files, and I'm going to go ahead and say Select Folder, and I'm gonna say Extract.
It is important to understand you'll need Administrative Access in order to copy the file to your Program Files so I'm gonna click Continue. Now I have a folder called apache-maven-3.3.9, and if I open it up, I'll see there's a bin folder, a boot folder, a conf folder, and a lib folder. At this point, I've completed my download. The instructions for using Maven depends on whether you're running a Windows machine or a Mac OS or Linux machine.
- Downloading Maven
- Installing Maven
- Understanding the lifecycle and dependencies of Maven
- Working with the Project Object Model (POM)
- Defining project relationships
- Using Maven plugins
- Creating a sample project with Maven
- Writing tests in Maven
- Packaging your app