How to Install Apache Maven on Windows, macOS & Linux
📌Install Apache Maven on Windows, macOS & Linux
Introduction
Apache Maven is a build automation and project management tool used in Java. Let’s see how to install it on Windows, macOS, and Linux step by step.
🔹 Step 1: Download Maven
-
Download Binary ZIP (Windows) or TAR.GZ (macOS/Linux).
-
Extract to:
-
Windows →
C:\Program Files\Apache\maven -
macOS/Linux →
/usr/local/apache-maven
-
🔹 Step 2: Configure Environment Variables
🖥️ Windows
-
Right-click This PC → Properties → Advanced system settings
-
Go to Advanced → Environment Variables
-
Add new system variable:
-
M2_HOME = C:\Program Files\Apache\maven
-
-
Edit Path → Add:
🍏 macOS
-
Open Terminal
-
Edit shell profile:
-
nano ~/.zshrc(zsh – default in latest macOS) -
nano ~/.bash_profile(bash)
-
-
Add these lines:
-
Save the file, then run:
🐧 Linux
-
Open Terminal
-
Edit your profile file:
-
nano ~/.bashrc(or~/.zshrc)
-
-
Add these lines:
-
Save the file and reload with:
🔹 Step 3: Verify Installation
Open a terminal/command prompt and type:
If installed correctly, it will show the Maven version, Java version, and OS details.
👉Watch how to install Apache Maven on Windows, macOS & Linux in Action
✅ Conclusion
Now Apache Maven is installed on your system 🎉. You can use it to build Java projects, manage dependencies, and automate tasks across Windows, macOS, and Linux.
💼 Professional Support Available
If you are facing issues in real projects related to enterprise backend development or workflow automation, I provide paid consulting, production debugging, project support, and focused trainings.
Technologies covered include Java, Spring Boot, PL/SQL, Azure, and workflow automation (jBPM, Camunda BPM, RHPAM).
📧 Contact: ishikhanirankari@gmail.com | info@realtechnologiesindia.com
🌐 Website: IT Trainings | Digital metal podium
Comments
Post a Comment