Cathcart is a collection of Apache Ant tasks and a Maven plugin for checking trends in software metrics (generated by junit, jmeter, clover, pmd, findbugs, cobertura etc). Use Cathcart to ensure continuous improvement in software quality. How to install Maven on Mac OSX. Mac OS X comes with Apache Maven 3 built in, and can be located at /usr/share/maven. Maven Built-In. To verify the Maven installation, in terminal, issue the command mvn -version. 2.1 – Download Maven Download the Maven, for example apache-maven-3.1.1-bin.tar.gz. I am not able to figure out how to correctly install JUnit onto my mac. I know I am supposed to add it to the path environmental variable, and I have tried a few tutorials I've found on Google on how to do that, but I keep getting errors.
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
To verify the Maven installation, in terminal, issue the command mvn -version
.
1.1 – Where is Maven installed?
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 apache-maven-3.1.1-bin.tar.gz
. Extracts it,
2.2 – Set Maven command in environment variable.
Update ~/. bash_profile
– create this file if doesn’t exist.
Restart the terminal. Test it.
3. Post Configuration
A common post-installation for Maven, change the local repository to another location.
Maven Junit Test Report
Above example changed the default repository from ~/.m2/repository
to /Users/mkyong//maven/repo/
.