Hints and tricks for developers

Martins Amazon Wunschliste

graphviz windows mac 18. February 2015

mac – commandline.

dot -Tsvg -o meinedatei.svg

No Comments on graphviz windows mac
Tags: ,
Categories: Tools

Install maven on Mac OS X 23. January 2015

  • Download the archiv from apache
  • cd ~/Downloads
  • unzip
  • cd /usr/local
  • sudo mkdir apache-maven
  • sudo mv ~/Downloads/apache-maven-3.3.3 /usr/local/apache-maven
  • cd /Library/Java/JavaVirtualMachines/
  • ls
  • cd ~
  • vi .bash_profile

1.Extract the distribution archive, i.e. apache-maven-3.2.5-bin.tar.gz to the directory you wish to install Maven 3.2.5. These instructions assume you chose /usr/local/apache-maven. The subdirectory apache-maven-3.2.5 will be created from the archive.
In a command terminal, add the M2_HOME environment variable, e.g. export M2_HOME=/usr/local/apache-maven/apache-maven-3.2.5.
Add the M2 environment variable, e.g. export M2=$M2_HOME/bin.
Optional: Add the MAVEN_OPTS environment variable to specify JVM properties, e.g. export MAVEN_OPTS=”-Xms256m -Xmx512m”. This environment variable can be used to supply extra options to Maven.
Add M2 environment variable to your path, e.g. export PATH=$M2:$PATH.
Make sure that JAVA_HOME is set to the location of your JDK, e.g. export JAVA_HOME=/usr/java/jdk1.7.0_51 and that $JAVA_HOME/bin is in your PATH environment variable.
Run mvn –version to verify that it is correctly installed.

To set environmen variable on mac:
/bin/launchctl setenv FOO BAR
echo $FOO

edit the .bach_profile in your home directory

export M2=$M2_HOME/bin
export PATH=$M2:$PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home

Finde out where java is
Use /usr/libexec/java_home -v 1.7 command on a terminal shell to figure out where is your java 1.7 home directory

thats it. you are set up

The local repositoy will be created in following folder:


if you perform

mvn install

install – install the package into the local repository, for use as a dependency in other projects locally

No Comments on Install maven on Mac OS X
Tags: , ,
Categories: Uncategorized
Martin Rocks