eclipse用link方式安装maven


参考:http://www.blogjava.net/fancydeepin/archive/2012/07/13/382965.html

下面是这篇文章的简化以及未涉及到的一些问题和整理,可以理解为这个版本的【简化及补充版】

1.eclipse版本
eclipse/.eclipseproduct
name=Eclipse Platform
id=org.eclipse.platform
version=3.7.0

2.安装maven并配置path,
download:http://maven.apache.org/download.cgi

检测安装成功的方式:cmd
C:\Users\admin>mvn -version
Apache Maven 3.0.5

3.link方式安装maven插件
插件download:http://pan.baidu.com/share/link?shareid=416127&uk=2871765541

整体结构:
eclipse
    ├─configuration
    ├─dropins
    ├─features
    ├─linkplugins //专门放插件的插件包
    │    └─maven
    │        └─eclipse
    │            ├─features
    │            └─plugins
    ├─links
    │  └─maven.link //配置的内容:path=D:/eclipse/linkplugins/maven
    ├─eclipse.exe
    ├─.eclipseproduct

简易结构:
eclipse
    ├─linkplugins //专门放插件的插件包
    │    └─maven //eclipse-maven3-plugin.7z解压到这儿便OK
    │        └─eclipse
    │            ├─features
    │            └─plugins
    ├─links
    │  └─maven.link //配置的内容:path=D:/eclipse/linkplugins/maven

PS:选择link安装的原因,在installer安装的时候报错,无奈的选择(而且link应该更快更清爽)
Cannot complete the install because one or more required items could not be found.
Software being installed: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317 (org.eclipse.m2e.logback.feature.feature.group 1.4.0.20130601-0317)...

4.报错
Eclipse is running in a JRE, but a JDK is required
Some Maven plugins may not work when importing projects or updating source folders.
解决方式:
配置Eclipse.ini
-vm
C:\Progra~2\Java\jdk1.6.0_16\jre\bin\javaw
PS:如果在Program Files下, 请使用Progra~1, 如果在x86下, 则使用Progra~2
参考:http://77tt77.iteye.com/blog/1041810

5.JDK版本问题
build path --add libraries--选择jdk1.6,然后在build path--config build path --remove --jdk1.5

6. @override报错解决
Windows->Preferences-->java->Compiler-->compiler compliance level设置成1.6

posted @ 2013-09-04 12:04  ocaicai  阅读(423)  评论(0编辑  收藏  举报