您的位置:首页 > 编程语言 > Java开发

myeclipse6.5安装mave2,出现natwork 错误解决

2012-02-13 21:58 459 查看
第一种方法:

windows -> preferences -> myeclipse -> maven4Eclipse -> maven

将update maven projects on startup 打上勾,(myeclipse 6.5)

第二种方法。

需要安装的插件是:

1. Subclipse 1.4: http://subclipse.tigris.org/update_1.4.x

2. Mylyn:要安装集成了JIRA支持的Mylyn,添加Mylyn Extras的Eclipse更新URL,如果你的组织使用Atlassian's JIRA来跟踪问题,你会需要这么做。使用下面的更新站点来安装Mylyn:

Mylyn (Eclipse 3.3): http://download.eclipse.org/tools/mylyn/update/e3.3
Mylyn (Eclipse 3.4): http://download.eclipse.org/tools/mylyn/update/e3.4
Mylyn Extras (JIRA 支持): http://download.eclipse.org/tools/mylyn/update/extras
3. 安装 AspectJ Tools Platform (AJDT)

如果你正在安装m2eclipse的0.9.4版本,你可能同时也想要安装Web Tools Platform (WTP) 和 AspectJ Development Tools (AJDT)。使用如下的eclipse更新URL以安装AJDT。

AJDT (Eclipse 3.3): http://download.eclipse.org/tools/ajdt/33/update
AJDT (Eclipse 3.4): http://download.eclipse.org/tools/ajdt/34/dev/update
4. 安装 Web Tools Platform (WTP)

要安装Web Tools Platform (WTP)。使用如下的eclipse更新URL,或者直接在Discovery站点中寻找Web Tool Project,该站点应该已经在你的Eclipse远程更新站点列表中了。

WTP: http://download.eclipse.org/webtools/updates/

5. 安装好这些先决条件后,就可以安装m2eclipse 插件: http://m2eclipse.sonatype.org/update/
Computer Techs, Eclipse, IntelliJ IDEA, Java, Society, Software Leave A Comment MyEclipse自6.5版开始集成Maven, 但是bug超多, 现在6.5.1了我还是没法选择窗口菜单, 于是想把这个垃圾灭了换上好用的m2eclipse, 但是MyEclipse又不提供插件禁用, 只好手动来了.

关闭Eclipse程序, 进入MyEclipse插件目录/eclipse/features,

删除com.genuitec.myeclipse.maven_6.5.1.zmyeclipse650200806目录,

接着删除plugins目录下的com.genuitec.myeclipse.maven_6.5.1.zmyeclipse650200806, org.maven.ide.components.archetype_common_2.0.0.20080331-1600, org.maven.ide.components.maven_embedder_2.1.0.20080410-2200, org.maven.ide.components.maven_model_edit_1.0.0.20080331-1600,
org.maven.ide.components.maven_scm_1.0.0.20080410-2200,

org.maven.ide.components.nexus_indexer_1.0.0.20080331-1600,

org.maven.ide.components.qname_1.0.0.20080331-1600目录,

还有com.genuitec.eclipse.maven_6.5.1.zmyeclipse650200806.jar,

org.maven.ide.eclipse.central_0.9.1.zmyeclipse650200806.jar,

org.maven.ide.eclipse.scm_0.9.2.zmyeclipse650200806.jar,

org.maven.ide.eclipse_0.9.3.zmyeclipse650200806.jar

这四个文件. 然后加上-clean参数启动Eclipse, 通过http://m2eclipse.sonatype.org/update/安装m2eclipse插件就可以重新正常使用Maven了.

为何更方便地使用Maven,选择安装m2eclipse插件,在官网http://m2eclipse.sonatype.org /installing-m2eclipse.html页面找到了更新地址:http://m2eclipse.sonatype.org/sites /m2e。

跟平常安装eclipse插件一样,输入地址,单击【Finish】时,进度条没走多少,就报了:Network connection problems encountered during search的错误提示。查看了detail信息,显示:

Network connection problems encountered during search.

Unable to access “http://m2eclipse.sonatype.org/sites/m2e/”.

Error parsing site stream. [White spaces are required between publicId and systemId.]

White spaces are required between publicId and systemId.

Error parsing site stream. [White spaces are required between publicId and systemId.]

White spaces are required between publicId and systemId.

感觉奇怪,怎么http://m2eclipse.sonatype.org/sites/m2e访问不了,用浏览器访问该地址,可以打开,如下所示:

有四个目录,其目录名也表明了m2eclipse的版本信息,分别有0.10.0.20100209-0800、 0.10.2.20100623-1649、0.12.0.20101115-1102和0.12.1.20110112-1712,最后使用 http://m2eclipse.sonatype.org/sites/m2e/0.10.0.20100209-0800/作为m2eclipse 的更新地址,安装过程未出现问题,而对于其他三个目录,则依然报Network connection problems encountered
during search的错误,不太清楚是啥原因,在Google查找也未找到具体的解决方法。

安装后,提示重新启动eclipse,可以通过菜单【Help】-【About Eclipse Platform】查看是否安装成功,成功的话,窗口会有一个M2的图标。此后,菜单【File】-【New Project】中将出现如下选项:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐