There are some third party options such as HomeBrew and using XCode to install Maven on Mac OS X Mavericks but I wanted to do it myself without relying on another software for getting maven working. Here are the steps that I used to install maven on Mac OS X Mavericks. Step 1: Download Maven binaries from Maven Download Page. I was using Maven. The instructions for using Maven depends on whether you're running a Windows machine or a Mac OS or Linux machine. Practice while you learn with exercise files Download the files the instructor.
By default, Maven local repository is defaulted to
${user.home}/.m2/repository
folder :- Unix/Mac OS X –
~/.m2/repository
- Windows –
C:Users{your-username}.m2repository
When we compile a Maven project, Maven will download all the project’s dependency and plugin jars into the Maven local repository, save time for next compilation.
1. Find Maven Local Repository
1.1 If the default
.m2
is unable to find, maybe someone changed the default path. Issue the following command to find out where is the Maven local repository:1.2 Example :
In above output, The Maven local repository is relocated to
C:optmaven-repository
2. Update Maven Local Repository
2.1 Find this file
{MAVEN_HOME}confsettings.xml
and update the localRepository
.{MAVEN_HOME}confsettings.xml
Note
Issue
Issue
mvn -version
to find out where is Maven installed.2.2 Save the file, done, the Maven local repository is now changed to
D:/maven_repo
.References
About the Author
Mac Install Maven
mkyong
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.Comments
- Maven Tutorial
- Maven Useful Resources
Maven Download Mac Os
- Selected Reading
Maven is a Java based tool, so the very first requirement is to have JDK installed on your machine.
System Requirement
JDK | 1.7 or above. |
---|---|
Memory | No minimum requirement. |
Disk Space | No minimum requirement. |
Operating System | No minimum requirement. |
Step 1 - Verify Java Installation on your Machine
Open console and execute the following java command.
OS | Task | Command |
---|---|---|
Windows | Open Command Console | c:> java -version |
Linux | Open Command Terminal | $ java -version |
Mac | Open Terminal | machine:~ joseph$ java -version |
Let's verify the output for all the operating systems −
OS | Output |
---|---|
Windows | java version '1.7.0_60' Java(TM) SE Runtime Environment (build 1.7.0_60-b19) Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode) |
Linux | java version '1.7.0_60' Java(TM) SE Runtime Environment (build 1.7.0_60-b19) Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode) |
Mac | java version '1.7.0_60' Java(TM) SE Runtime Environment (build 1.7.0_60-b19) Enhanced By Abilities and Traits.: +514% depending on tier of trait.: +1045% depending on tier of trait, for ranged attacks, not including weapon skills.: Up to +50% with consecutive attacks landed while usingEquipment ItemLevelSlotJobsCrit. Critical hit dmg poe. Hit Dmg.9920% (Occ.)9910% (Occ.)8110%8310%8410%8810%99910%795%835%835%845%995%7515%984%7514%7514%72All Jobs3%803%883%903%993%753%753%753%7513%872%992%752% (Latent)752%752%7087999969Related Links. Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode) |
If you do not have Java installed, install the Java Software Development Kit (SDK) from https://www.oracle.com/technetwork/java/javase/downloads/index.html. We are assuming Java 1.7.0.60 as installed version for this tutorial.
Step 2 - Set JAVA Environment
Set the JAVA_HOME environment variable to point to the base directory location where Java is installed on your machine. For example −
OS | Output |
---|---|
Windows | Set the environment variable JAVA_HOME to C:Program FilesJavajdk1.7.0_60 |
Linux | export JAVA_HOME=/usr/local/java-current |
Mac | export JAVA_HOME=/Library/Java/Home |
Append Java compiler location to System Path.
OS | Output |
---|---|
Windows | Append the string “;C:Program FilesJavajdk1.7.0.60bin” to the end of the system variable, Path. |
Linux | export PATH=$PATH:$JAVA_HOME/bin/ |
Mac | not required |
Verify Java Installation using java -version command as explained above.
The new European data protection law requires us to inform you of the following before you use our website:We use cookies and other technologies to customize your experience, perform analytics and deliver personalized advertising on our sites, apps and newsletters and across the Internet based on your interests. By clicking “I agree” below, you consent to the use by us and our third-party partners of cookies and data gathered from your use of our platforms. See our and to learn more about the use of data and your rights. You also agree to our. https://hsrhat.weebly.com/blog/dmg-aa5e-usa.
Step 3 - Download Maven Archive
Download Maven 2.2.1 from https://maven.apache.org/download.cgi.
OS | Archive name |
---|---|
Windows | apache-maven-3.3.1-bin.zip |
Linux | apache-maven-3.3.1-bin.tar.gz |
Mac | apache-maven-3.3.1-bin.tar.gz |
Step 4 - Extract the Maven Archive
Extract the archive, to the directory you wish to install Maven 3.3.1. The subdirectory apache-maven-3.3.1 will be created from the archive.
Dec 29, 2015 Starter - Download for free to get started with basic photo editing tools and over 600 effects. Essentials - Gain access to enhanced features such as advanced Double Exposure and additional effects, overlays, and borders simply by creating a free Pixlr account and signing in. Aug 11, 2015 Download Pixlr Desktop 1.1.1.0. Comprehensive and simple photo editing for everyone. Pixlr offers a set of photo-retouching tools aimed at users with little knowledge of the subject of photo editing. This adaptation for Mac joins the well-known web editor. Pixlr Editor, free and safe download. Pixlr Editor latest version: Free online photo editor for personal and professional needs. Pixlr Editor is quite similar to other programs such as GIMP. https://hsrhat.weebly.com/blog/pixlr-editor-download-mac.
OS | Location (can be different based on your installation) |
---|---|
Windows | C:Program FilesApache Software Foundationapache-maven-3.3.1 |
Linux | /usr/local/apache-maven |
Mac | /usr/local/apache-maven |
Step 5 - Set Maven Environment Variables
Add M2_HOME, M2, MAVEN_OPTS to environment variables.
OS | Output |
---|---|
Windows | Set the environment variables using system properties. M2_HOME=C:Program FilesApache Software Foundationapache-maven-3.3.1 M2=%M2_HOME%bin MAVEN_OPTS=-Xms256m -Xmx512m |
Linux | Open command terminal and set environment variables. export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.1 export M2=$M2_HOME/bin export MAVEN_OPTS=-Xms256m -Xmx512m |
Mac | Open command terminal and set environment variables. export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.1 Dolphin mac download. Nintendo WiiDownload(14M)Some emulators may require a system BIOS to run game titles. export M2=$M2_HOME/bin export MAVEN_OPTS=-Xms256m -Xmx512m |
Step 6 - Add Maven bin Directory Location to System Path
Now append M2 variable to System Path.
Download Apache Maven
OS | Output |
---|---|
Windows | Append the string ;%M2% to the end of the system variable, Path. |
Linux | export PATH=$M2:$PATH |
Mac | export PATH=$M2:$PATH |
Step 7 - Verify Maven Installation
Now open console and execute the following mvn command.
Maven 3.3.9 Download
OS | Task | Command |
---|---|---|
Windows | Open Command Console | c:> mvn --version |
Linux | Open Command Terminal | $ mvn --version |
Mac | Open Terminal | machine:~ joseph$ mvn --version |
Finally, verify the output of the above commands, which should be as follows −
OS | Output |
---|---|
Windows | Apache Maven 3.3.1 (r801777; 2009-08-07 00:46:01+0530) Java version: 1.7.0_60 Java home: C:Program FilesJavajdk1.7.0_60 jre |
Linux | Apache Maven 3.3.1 (r801777; 2009-08-07 00:46:01+0530) On the following screen titled Welcome to the AnyConnect Secure Mobility Client Installer, click Continue. Cisco anyconnect secure mobility client download mac. Java version: 1.7.0_60 Java home: C:Program FilesJavajdk1.7.0_60 jre |
Mac | Apache Maven 3.3.1 (r801777; 2009-08-07 00:46:01+0530) Java version: 1.7.0_60 Java home: C:Program FilesJavajdk1.7.0_60 jre |