Maven Tutorial for Beginners Home / Video /

Maven Tutorial for Beginners: How to Install Maven on Mac and Windows

Maven Tutorial for Beginners: How to Install Maven on Mac and Windows

...Playlist

...

    About The Video

    In this tutorial, ๐Š๐จ๐ฎ๐ฌ๐ก๐ข๐ค ๐‚๐ก๐š๐ญ๐ญ๐ž๐ซ๐ฃ๐ž๐ž (@Koushik_chat), Content Creator at LetCode, provides a step-by-step guide to set up Maven in your Java project. Whether you're on macOS or Windows, this video shows you how to install Maven, configure the JDK and Maven paths, and create your first Maven project using the terminal and IntelliJ IDE.

    From setting up the environment to creating a working project, youโ€™ll gain a solid foundation in Maven project management.

    ๐ŸŽฏ Key Topics Covered:

    โœ… Installing Maven on macOS and Windows

    โœ… Configuring JDK and Maven paths for a proper setup

    โœ… Creating your first Maven project using the terminal

    โœ… Setting up a Maven project in IntelliJ IDEA

    โœ… Understanding the Maven project structure and dependencies

    โœ… Troubleshooting common setup and installation issues

    Video Chapters

    00:00 Introduction & Maven Project Setup Overview

    00:25 Installing Maven on macOS

    01:10 Downloading & Setting Up JDK

    02:40 Downloading & Setting Up Maven

    03:14 Configuring Environment Variables for JDK & Maven

    06:50 Creating a Maven Project via Terminal

    09:17 Exploring the Maven Project Structure

    11:23 Creating a Maven Project Using an IDE

    12:35 Installing Maven on Windows

    15:05 Recap & Key Takeaways

    Key Topics Covered

    In this video, Koushik provides a comprehensive guide to setting up Apache Maven for Java projects on both Mac OS and Windows. The session begins with installing the Java Development Kit (JDK), recommending version 21 or above, and setting the JDK path for system recognition. On Mac OS, the preferred method involves using Homebrew or manually downloading the JDK, followed by configuring environment variables in the terminal (Zsh or Bash) for both Java and Maven paths.

    The instructor explains downloading the Apache Maven binary zip (version 3.9.11), extracting it, and setting the M2_HOME and PATH variables so Maven commands can run globally. Verification of the installation is done using java -version and mvn -v.

    Next, the video demonstrates creating a Maven project via the terminal using the mvn archetype:generate command, explaining the group ID (project namespace) and artifact ID (project name).

    The process generates a default Maven project structure, including pom.xml, src/main/java, and src/test/java folders, with initial dependencies such as JUnit. The pom.xml is highlighted as the heart of the Maven project, defining project metadata, dependencies, and build configuration.

    Koushik also shows how to create a Maven project using IntelliJ IDE, where the process is simplified through a graphical interface but results in the same project structure. For Windows, the setup is straightforward: install JDK, set JAVA_HOME and update the system PATH, then download Maven, configure environment variables, and verify using mvn -v.

    The session concludes with a recap: learners now know how to install Maven, set up JDK and Maven paths, and create their first Maven project via terminal and IDE. The instructor hints at upcoming lessons on folder structure and Maven dependencies, laying the foundation for managing and building Java projects efficiently.

    More Videos from Maven Tutorial for Beginners