简体   繁体   English

脱机安装Maven2eclipse时出现问题

[英]Problems installing maven2eclipse offline

I've been dealing with this problems for days now. 我已经处理了好几天了。

I need to install maven and the eclipse plug-in "maven2eclipse" on an offline environment. 我需要在脱机环境中安装maven和eclipse插件“ maven2eclipse”。 So far I've installed maven on the computer but I'm not able to import or open a maven project in eclipse when I right click and select "import source" in the package/project explorer. 到目前为止,我已经在计算机上安装了maven,但是当我右键单击并在包/项目浏览器中选择“导入源”时,我无法在eclipse中导入或打开maven项目。 Maven alternatives simply aren't there for me to use even though I've installed all of the plug-ins that m2e repository has to offer. 即使我已经安装了m2e存储库必须提供的所有插件,也根本无法使用Maven替代产品。

I've downloaded the m2e-repository for a local version with these commandlines: Artifact and metadata (replacing .artifact. with .metadata. and running it again) "C:\\eclipse Java EE\\eclipse.exe" -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication \\ -source http://download.eclipse.org/technology/m2e/releases \\ -destination C:\\Maven2Eclipse\\repos 我已经使用以下命令行下载了本地版本的m2e存储库:工件和元数据(用.metadata替换.artifact。并再次运行它)“ C:\\ eclipse Java EE \\ eclipse.exe” -application org.eclipse .equinox.p2.artifact.repository.mirrorApplication \\-源http://download.eclipse.org/technology/m2e/releases \\-目标C:\\ Maven2Eclipse \\ repos

I then moved this local folder to the offline system and used it as a local repository. 然后,我将该本地文件夹移至离线系统,并将其用作本地存储库。

I've also downloaded the helios repository, but I haven't installed anything from it. 我还下载了helios信息库,但尚未安装任何东西。 Becuase I seemed to be lacking some important dependancies without it. 因为没有它,我似乎缺少一些重要的依赖。 Something with eclipse.UI.. haven't been able to reproduce it. eclipse.UI ..的某些内容无法重现。

Anyways, I've added the downloaded repositories to the disposal of my offline environment. 无论如何,我已经将下载的存储库添加到脱机环境中。 I installed everything with "m2e" and/or "maven" in it's name but I still can't import an "existing maven project". 我安装了所有名称为“ m2e”和/或“ maven”的东西,但仍然无法导入“现有的maven项目”。 The option simply isn't there. 该选项根本不存在。

Here's a screenshot of what m2e software I have installed using the "install new software". 这是我使用“安装新软件”安装的m2e软件的屏幕截图。 http://i.imgur.com/xPKN6qn.png http://i.imgur.com/xPKN6qn.png

Have I missed something? 我错过了什么吗? There's something missing and keeping me from actually being able to select the import source "import an existing maven project". 缺少一些东西,使我无法选择导入源“导入现有的Maven项目”。

I've been searching the web like crazy and I cannot find anything that resembles my problem. 我一直在疯狂地搜索网络,找不到任何与我的问题类似的东西。 There's quite a lot on mirroring eclipse repositories and what not but I don't seem to have a problem whit that, unless something didn't get downloaded. 镜像Eclipse存储库上有很多东西,但不是,但似乎没有问题,除非未下载某些东西。

Thanks in advance for any help. 在此先感谢您的帮助。

It is better if you can update eclipse with the automatic update by using the url online directly.downloading and then installing the plugin manually causes a lot of issues as some plugins might not get downloaded properly in the installer or some plugins may be completely missing from the installer itself. 最好通过直接在线使用url来使用自动更新来更新eclipse。手动下载并安装插件会导致很多问题,因为某些插件可能无法在安装程序中正确下载,或者某些插件可能会完全丢失安装程序本身。

Please check the proper url to install the plugin automatically which matches with the version of the eclipse you may be using. 请检查正确的网址以自动安装与您可能使用的Eclipse版本匹配的插件。

Just...check this two things, if you go in eclipse configuration, inside the Maven tab? 只是...检查这两件事,如果您在Eclipse配置中进入Maven选项卡?

1: Check the Offline mode... 1:检查离线模式...

2: Try to use the Maven you've installed (not the embedded one..) 2:尝试使用已安装的Maven(而不是嵌入式M ..)

I solved the issue by manually copying all plugins and feature files into their respective folders, making sure everything was installed as well and then restarting eclipse a couple of times with the -clean addition. 我通过手动将所有插件和功能文件复制到各自的文件夹中,并确保已安装所有内容,然后使用-clean添加几次重新启动eclipse来解决了该问题。 After that, it started working.. weird :/ 在那之后,它开始工作..怪异的:/

Thanks for the answers though! 谢谢你的回答!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM