分类目录归档:未分类

Windows And Eclipse 安装Maven

Windows XP 下安装MAVEN

下载apache-maven-3.0.3-bin.ziphttp://maven.apache.org/download.html
解压缩至F:apache-maven-3.0.3
设置环境变量
M2_HOME=F:apache-maven-3.0.3
PATH=F:apache-maven-3.0.3bin,记住是追加。
注销后,在命令提示符下,输入mvn -v
如果显示了maven的版本信息,表示安装成功。

在Eclipse3.6上安装maven插件

值得说明的是我的Eclipse已经安装了Subclipse,也就是SVN。

Help-Install new software-Add…

首先安装GEF
gef – http://download.eclipse.org/tools/gef/updates/releases/
选择一个最新版本吧

如果不安装GEF,在安装maven时将会出现以下错误
Cannot complete the install because one or more required items could not be found.
Software being installed: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712)
Missing requirement: Maven Integration for Eclipse (Editors) 0.12.1.20110112-1712 (org.maven.ide.eclipse.editor 0.12.1.20110112-1712) requires ‘bundle org.eclipse.zest.core 0.0.0’ but it could not be found
Cannot satisfy dependency:
From: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712)
To: org.maven.ide.eclipse.editor [0.12.1.20110112-1712]

安装maven
maven – http://m2eclipse.sonatype.org/sites/m2e

安装完成后就可以创建MAVEN项目