Posts

Showing posts with the label Programming

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 Go to: https://maven.apache.org/download.cgi 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: %M2_HOME%\bin 🍏 macOS Open Terminal Edit shell profile: nano ~/.zshrc (zsh – default in latest macOS) nano ~/.bash_profile (bash) Add these lines: export M2_HOME=/usr/local/apache-maven export PATH= $M2_HOME /bin: $PATH Save the file, then run: ...

How to Set Java Environment Variables (Windows, Mac & Linux) | JAVA_HOME Setup

📌Set Java Environment Variables