Since Lion 10.7.1 10.6.8 MacOSx Snow Leopard (correct me if wrong), Mac OS X comes with Apache Maven 3 built in, and can be located at
/usr/share/maven
1. Maven Built-In
![Netbeans For Mac Os X 10.6.8 Netbeans For Mac Os X 10.6.8](https://images.sftcdn.net/images/t_app-cover-m,f_auto/p/b9980254-9b24-11e6-aeae-00163ed833e7/3921379953/netbeans-screenshot.jpg)
To verify the Maven installation, in terminal, issue the command
mvn -version
.Very often, it worked on the first installation and failed on the subsequent activation. There is a need to come out with a simple and systematical trouble-shooting to isolate the cause of failure in activation for newbie in Java development. In addition, solving bugs in Eclipse for Mac OS X is relative slow as compared to other platform. Mac OS X 10.6.8 PHP, JavaScript, SQL, HTML 4h/week 78 Alied Perez [email protected] alied Argentina AMD Athlon IIx2 3.0GHz, 8GB RAM, SATA II Debian GNU/Linux Testing x8664, k3.5.4 XFCE NB Modules, Java EE 4h/week 79 Michael Bar-Sinai [email protected] michbarsinai Israel MacBookPro w/ Retina OSX 10.8 Mountain Lion HTML, JavaScript, Java. As mentioned by many people JDK is no more part of OS X Lion, but has to be installed and there are 2 versions: one from developer site and one that is uploaded by 'Mac update' when needed. I had no trouble using Netbeans with the second one as it does not install in the same directories.
1.1 – Where is Maven installed?
A quick check with
A quick check with
whereis
command :By default, Maven is installed at
/usr/share/maven
. No configuration is needed.2. Install Maven Manually
After the upgrade of Mac OS X Mavericks, Maven was removed (no idea why). So, You have to install it manually.
2.1 – Download Maven
Download the Maven, for example
Download the Maven, for example
apache-maven-3.1.1-bin.tar.gz
. Extracts it, 2.2 – Set Maven command in environment variable.
Update
Update
~/. bash_profile
– create this file if doesn’t exist.~/.bash_profile
Restart the terminal. Test it.
![Netbeans Netbeans](https://i.ytimg.com/vi/zr4PKPECpFc/maxresdefault.jpg)
3. Post Configuration
A common post-installation for Maven, change the local repository to another location.
Jdk download for mac os x 10.6.8. Above example changed the default repository from
~/.m2/repository
to /Users/mkyong//maven/repo/
.References
Tags : macmaven