Junit Download Maven For Mac

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.

~/.bash_profile

Restart the terminal. Test it.

3. Post Configuration

A common post-installation for Maven, change the local repository to another location.

Maven junit code

Maven Junit Test Report

Above example changed the default repository from ~/.m2/repository to /Users/mkyong//maven/repo/.

Maven Junit Code

References

Download Apache Maven 3.3.9

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. Read all published posts by

Maven Junit Example

Comments