$ sudo mkdir /usr/local/maven $ tar xvf /usr/local/maven/apache-maven-2.2.1-bin.tar.gz $ mv ./apache-maven-2.2.1 /usr/local/maven/ $ ln -s /usr/local/maven/apache-maven-2.2.1 /usr/local/maven/current $ vi ~/bash_profile export MAVEN_HOME=/usr/local/current export PATH=$MAVEN_HOME/bin:$PATH $ source .bash_profile $ mvn --version Apache Maven 2.2.0 (r788681; 2009-06-26 22:04:01+0900) Java version: 1.6.0_17 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home Default locale: ja_JP, platform encoding: SJIS OS name: "mac os x" version: "10.6.3" arch: "x86_64" Family: "mac" $ mvn archetype:generate 61: remote -> maven-archetype-webapp (An archetype which contains a sample Maven Webapp project.) Choose a number: 58: 61 Choose version: 1: 1.0 Choose a number: : 1 Define value for property 'groupId': : Define value for property 'artifactId': : Define value for property 'version': 1.0-SNAPSHOT: Define value for property 'package': xxx.xxx: pom.xmlを編集する $ mvn package $ mvn eclipse:add-maven-repo -Declipse.workspace=/Users/sakata/Documents/workspace/ $ mvn eclipse:eclipse -DdownloadSources=true -Dwtpversion=2.0