niedenzu

Hints and tricks for developers

Martins Amazon Wunschliste

Maven-Konfiguration mit Eclipse 6. December 2016

Damit Eclipse mit der Maven-Verzeichnisstruktur arbeitetn kann muß man Maven innerhalb von Eclipse kongigurieren.

Als erstes muß man maven auf sein Sytem kopieren und ein paar Umgebungsvariablen einstellen.

M2_HOME: C:/Programme/Apache Software Foundation/apache-maven-2.2.1
JAVA_HOME: C:/Programme/IBM/SDP/jdk
Path: %M2_HOME%bin

Installation von Maven muß ein einem Verzeichnis ein.

das zweite bild

zweites bild

No Comments on Maven-Konfiguration mit Eclipse
Tags: ,
Categories: Maven

Install maven on Mac OS X 23. January 2015

  • Download the archiv from apache
  • cd ~/Downloads
  • unzip apache-maven-3.3.3-bin.zip
  • 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:

/Users/martin/.m2/repository

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