如何执行Eclipse存储库镜像以进行离线安装Maven插件? [英] How to perform Eclipse repository mirroring for offline installation Maven plugin?

查看:224
本文介绍了如何执行Eclipse存储库镜像以进行离线安装Maven插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了 Maven ,用于离线开发,如下所述 - 如何配置Maven进行脱机开发?
现在我要为 Eclipse 安装 Maven 插件在离线模式下。

I set up Maven for offline development, as described here - How do I configure Maven for offline development? Now I want to install Maven plugin for Eclipse in offline mode.

该插件可以通过在线更新站点安装。但是如何在离线模式下安装?
我试图将它安装在安装新软件菜单中,以便 -

The plugin can be installed via online update site. But how to install it in offline mode? I tried to install it in the "Install New Software" menu so -

jar:file:/C:/plugins/apache-maven-3.1.0-bin.zip!/

当然,它有没有任何东西。

Of course, it has given nothing.

如下所述 - 下载Eclipse插件更新站点进行脱机安装 - 此处 - Equinox p2存储库镜像 - 我可以使用存储库镜像(更新站点 Eclipse 插件)。

As described here - Downloading Eclipse plug-in update sites for offline installation - and here - Equinox p2 Repository Mirroring - I can use a repository mirroring (update sites Eclipse plugins).

此代码 -

$eclipse_home/eclipse -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication -source $1 -destination $2
$eclipse_home/eclipse -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication -source $1 -destination $2

如何使用它来安装插件 Maven ?参数 $ 1 $ 2

How can I use it to install the plugin Maven? What specify in the arguments $1 and $2?

推荐答案

我猜想要安装m2e(maven插件为eclipse)。您应该从以下更新站点安装:

I'm guessing that you want to install m2e (maven plugin for eclipse). You should be installing from the following update site:

http://download.eclipse.org/technology/m2e/releases

所以,假设你想在 C:\Eclipse\\ \\repos ,命令将如下所示:

So, assuming that you want to mirror it at C:\Eclipse\repos, the command will look like this:

$eclipse_home/eclipse.exe -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication \
  -source http://download.eclipse.org/technology/m2e/releases \
  -destination C:\Eclipse\repos

这篇关于如何执行Eclipse存储库镜像以进行离线安装Maven插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆