如何查看Tycho从哪个URL镜像?

svgewumm  于 2022-10-05  发布在  Maven
关注(0)|答案(1)|浏览(155)

我正在关注博客Mirror Eclipse p2 repositories with Tycho以镜像一些可安装的单元。另外,我将遵循Tycho/Target Platform/Authentication and Mirrorssettings.xml中配置替代位置。当我启动mvn package -s ./settings.xml时,控制台显示:

[INFO] Mirroring to /path/to/eclipse/mirrors...
Mirroring: osgi.bundle,org.eclipse.swt.gtk.linux.aarch64.source,3.120.0.v20220530-1036 (Descriptor: canonical: osgi.bundle,org.eclipse.swt.gtk.linux.aarch64.source,3.120.0.v20220530-1036)
Mirroring: osgi.bundle,org.junit.platform.suite.commons,1.8.1.v20211018-1956 (Descriptor: canonical: osgi.bundle,org.junit.platform.suite.commons,1.8.1.v20211018-1956)
Mirroring: osgi.bundle,org.eclipse.xtext.ui.shared,2.27.0.v20220530-0416 (Descriptor: canonical: osgi.bundle,org.eclipse.xtext.ui.shared,2.27.0.v20220530-0416)
Mirroring: osgi.bundle,org.eclipse.jetty.io,10.0.9 (Descriptor: canonical: osgi.bundle,org.eclipse.jetty.io,10.0.9)
Mirroring: osgi.bundle,org.apache.batik.util,1.9.1.v20180703-1553 (Descriptor: canonical: osgi.bundle,org.apache.batik.util,1.9.1.v20180703-1553)
Mirroring: osgi.bundle,org.eclipse.pde.runtime.source,3.7.400.v20220317-2150 (Descriptor: canonical: osgi.bundle,org.eclipse.pde.runtime.source,3.7.400.v20220317-2150)
Mirroring: osgi.bundle,org.eclipse.emf.importer.java.source,2.11.0.v20200324-0723 (Descriptor: canonical: osgi.bundle,org.eclipse.emf.importer.java.source,2.11.0.v20200324-0723)
Mirroring: osgi.bundle,org.junit.platform.runner.source,1.8.1.v20211018-1956 (Descriptor: canonical: osgi.bundle,org.junit.platform.runner.source,1.8.1.v20211018-1956)
Mirroring: org.eclipse.update.feature,org.eclipse.swtbot,4.0.0.202206011610 (Descriptor: canonical: org.eclipse.update.feature,org.eclipse.swtbot,4.0.0.202206011610)
Mirroring: osgi.bundle,org.eclipse.emf.exporter,2.10.0.v20190321-1530 (Descriptor: canonical: osgi.bundle,org.eclipse.emf.exporter,2.10.0.v20190321-1530)
Mirroring: osgi.bundle,org.eclipse.epsilon.erl.dt,2.4.0.202203041826 (Descriptor: canonical: osgi.bundle,org.eclipse.epsilon.erl.dt,2.4.0.202203041826)
Mirroring: osgi.bundle,org.eclipse.equinox.launcher.cocoa.macosx.aarch64,1.2.500.v20220509-0833 (Descriptor: canonical: osgi.bundle,org.eclipse.equinox.launcher.cocoa.macosx.aarch64,1.2.500.v20220509-0833)
Mirroring: osgi.bundle,org.eclipse.ui.cheatsheets.source,3.7.300.v20210507-0822 (Descriptor: canonical: osgi.bundle,org.eclipse.ui.cheatsheets.source,3.7.300.v20210507-0822)
Mirroring: osgi.bundle,org.eclipse.pde.ua.ui.source,1.2.400.v20220317-0700 (Descriptor: canonical: osgi.bundle,org.eclipse.pde.ua.ui.source,1.2.400.v20220317-0700)
Mirroring: osgi.bundle,org.eclipse.emf.mwe.utils,1.7.0.v20220519-1115 (Descriptor: canonical: osgi.bundle,org.eclipse.emf.mwe.utils,1.7.0.v20220519-1115)
Mirroring: osgi.bundle,org.eclipse.ui.views.properties.tabbed,3.9.100.v20201223-1348 (Descriptor: canonical: osgi.bundle,org.eclipse.ui.views.properties.tabbed,3.9.100.v20201223-1348)
Mirroring: osgi.bundle,org.eclipse.pde.build.source,3.11.200.v20220503-0921 (Descriptor: canonical: osgi.bundle,org.eclipse.pde.build.source,3.11.200.v20220503-0921)
Mirroring: osgi.bundle,org.eclipse.core.net.win32.source,1.0.0.v20220312-1450 (Descriptor: canonical: osgi.bundle,org.eclipse.core.net.win32.source,1.0.0.v20220312-1450)
Mirroring: osgi.bundle,org.eclipse.emf.ecore.change.edit,2.8.0.v20180706-1146 (Descriptor: canonical: osgi.bundle,org.eclipse.emf.ecore.change.edit,2.8.0.v20180706-1146)
Mirroring: osgi.bundle,org.eclipse.equinox.registry,3.11.100.v20211021-1418 (Descriptor: canonical: osgi.bundle,org.eclipse.equinox.registry,3.11.100.v20211021-1418)
Mirroring: org.eclipse.update.feature,org.eclipse.emf.common,2.26.0.v20220325-0806 (Descriptor: canonical: org.eclipse.update.feature,org.eclipse.emf.common,2.26.0.v20220325-0806)

这一过程很慢,需要近两个小时。也许我的settings.xml不工作。我不知道第谷被什么缠住了。也许我已经将以https://download.eclipse.org开头的URL配置为使用我的镜像URL,但tycho是从http://download.eclipse.org获取的,所以它忽略了我的镜像配置。也许Tycho在指定的镜像位置找不到某些神器。我不知道。控制台应该会像Maven镜子一样通知我这一点。Tycho就是不需要。是否需要任何额外的配置来打印Tycho取得了多大的进展?镜像过程在黑匣子中运行,这让我感到焦虑--它应该在什么时候结束?第谷坚持的是什么?我能做什么?想象一下等待Windows更新结束的感觉。我希望有一个调试选项来告诉我所有的进度。我需要得到充分的信息。感谢您的帮助!

附注:从this message我可以看到,在Tycho 0.16.0中,有关于进度的控制台输出。后来发布的Tycho让用户一无所知的情况发生了什么?

[INFO] Fetching p2.index from
http://artifactory.myintranet.net:8080/p2-eclipse-releases-juno/ (0B of
128B at 0B/s)
9njqaruj

9njqaruj1#

that message中的命令行选项-X(或--debug,生成执行调试输出)已经给出了答案。

为什么Tycho忽略settings.xml中的镜像配置?答:不,Tycho不会忽略配置。但tycho-p2-extras-plugin不支持镜像配置。这些配置仅对在pom.xml中的<repositories>标记下编写的存储库生效。Tycho还不支持使用其镜像来镜像存储库。(对于大多数开发人员来说,这可能听起来很奇怪。)Tycho所支持的只是从镜像存储库中提取Maven项目的依赖项。

相关问题