m2eclipse 插件作为本地站点存储库

发布于 2024-11-23 16:30:14 字数 1831 浏览 1 评论 0原文

是否可以下载 m2eclipse 插件,以便我可以从 eclipse 将其安装为本地站点? 如果是这样,你能给我指向该链接吗,我在 m2eclipse 网站上找不到它:

m2e eclipse下载链接

======================================

尝试过@Torsten的评论

我创建了一批包含此条目的文件:

@echo off
set ECLIPSE=D:/DevProgs/dumps/Eclipse3.5
echo Mirroring metadata for %1
java -jar %ECLIPSE%/plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar \
 -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication \
 -source %1 \
 -destination p2-mirror \
 -destinationName "D:\temp" \
 -verbose \
 -compare

并调用批处理文件,但它只是启动 Eclipse 并且没有任何反应......你能告诉吗我之后该怎么办?

D:\DevAreas\test>DownloadEclipseRepo.bat "http://download.eclipse.org/technology/m2e/releases/"
Mirroring metadata for "http://download.eclipse.org/technology/m2e/releases/"

并且批处理文件不执行任何其他操作。

当我停止批处理文件时..它会抱怨这样的事情:

D:\DevAreas\test>DownloadEclipseRepo.bat "http://download.eclipse.org/technology/m2e/releases/"
Mirroring metadata for "http://download.eclipse.org/technology/m2e/releases/"
Terminate batch job (Y/N)?
^C'-application' is not recognized as an internal or external command,
operable program or batch file.
'-source' is not recognized as an internal or external command,
operable program or batch file.
'-destination' is not recognized as an internal or external command,
operable program or batch file.
'-destinationName' is not recognized as an internal or external command,
operable program or batch file.
'-verbose' is not recognized as an internal or external command,
operable program or batch file.
'-compare' is not recognized as an internal or external command,
operable program or batch file.
D:\DevAreas\test>

您能否提供一些更清晰的信息/建议?

is it possible to download the m2eclipse plug-in so that I can install it from eclipse as a local site?
if so, can you point me to the link, I could not find it on the m2eclipse site here:

m2e eclipse download link

====================================

Tried @Torsten's comments

I created a batch file with this entry:

@echo off
set ECLIPSE=D:/DevProgs/dumps/Eclipse3.5
echo Mirroring metadata for %1
java -jar %ECLIPSE%/plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar \
 -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication \
 -source %1 \
 -destination p2-mirror \
 -destinationName "D:\temp" \
 -verbose \
 -compare

and called the batch file, but it simply starts eclipse and nothing happens... can you tell me what to do after this?

D:\DevAreas\test>DownloadEclipseRepo.bat "http://download.eclipse.org/technology/m2e/releases/"
Mirroring metadata for "http://download.eclipse.org/technology/m2e/releases/"

and the batch file does not do anything else.

When I stop the batch file.. it complains something like this:

D:\DevAreas\test>DownloadEclipseRepo.bat "http://download.eclipse.org/technology/m2e/releases/"
Mirroring metadata for "http://download.eclipse.org/technology/m2e/releases/"
Terminate batch job (Y/N)?
^C'-application' is not recognized as an internal or external command,
operable program or batch file.
'-source' is not recognized as an internal or external command,
operable program or batch file.
'-destination' is not recognized as an internal or external command,
operable program or batch file.
'-destinationName' is not recognized as an internal or external command,
operable program or batch file.
'-verbose' is not recognized as an internal or external command,
operable program or batch file.
'-compare' is not recognized as an internal or external command,
operable program or batch file.
D:\DevAreas\test>

Could you please provide some more clarity/suggestions?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情何以堪。 2024-11-30 16:30:14

遗憾的是,越来越多的 Eclipse 项目不再以 Zip 或可下载站点的形式分发。这确实伤害了构建离线安装的人们。

现代……

我想M2Eclipse 也是如此。作为一种解决方案,您可以使用 p2.mirror 脚本从 p2 存储库检索站点的本地副本,如下所示,该脚本使用本地 Eclipse 3.5 安装。您可能希望根据您手头的情况进行调整。

希望这有帮助,

托斯顿

#!/bin/sh
ECLIPSE=C:/eclipse3.5

echo Mirroring metadata for $1
java -jar ${ECLIPSE}/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar \
 -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication \
 -source ${1} \
 -destination p2-mirror \
 -destinationName "Corporate P2 Repo" \
 -verbose \
 -compare

echo Mirroring artifacts for $1
java -jar ${ECLIPSE}/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar \
 -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication \
 -source ${1} \
 -destination p2-mirror \
 -destinationName "Corporate P2 Repo" \
 -verbose \
 -compare

Sadly enough more and more Eclipse projects are no longer distributed as Zips or downloadable sites. This really hurts people building offline installations.

Modern times ...

I think this is the case with M2Eclipse as well. As a solution you can use a p2.mirror script to retrieve a local copy of the site from the p2 repository like the one below, which is using a local Eclipse 3.5 installation. You may want to adapt thi to what you have at hand.

Hope this helps,

Torsten

#!/bin/sh
ECLIPSE=C:/eclipse3.5

echo Mirroring metadata for $1
java -jar ${ECLIPSE}/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar \
 -application org.eclipse.equinox.p2.metadata.repository.mirrorApplication \
 -source ${1} \
 -destination p2-mirror \
 -destinationName "Corporate P2 Repo" \
 -verbose \
 -compare

echo Mirroring artifacts for $1
java -jar ${ECLIPSE}/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar \
 -application org.eclipse.equinox.p2.artifact.repository.mirrorApplication \
 -source ${1} \
 -destination p2-mirror \
 -destinationName "Corporate P2 Repo" \
 -verbose \
 -compare
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文