Eclipse:从命令行中安装一组插件——> DefaultProfile不是当前的。预期的时间戳

时间:2023-02-05 09:11:24

We are trying to install a set of eclipse plugins from the commandline.

我们正在尝试从命令行安装一组eclipse插件。

For this we are using the General command: [1]

为此,我们使用的是[1]

The command works most of the times perfect.

这个命令在大多数情况下都是完美的。

But for some plugins we get a similar error: [2]

但是对于一些插件,我们会得到类似的错误:[2]

The only difference is the timestamp.

唯一的区别是时间戳。

As a result the plugins could not be installed from the command line. When installing the plugin in the UI everything is working.

因此,插件无法从命令行安装。在UI中安装插件时,一切正常。

Any idea what is causing the error [2]. Might this be an issue with the Installation sequence? How can we set the Defaultprofile

任何导致错误的想法[2]。这可能是安装序列的问题吗?如何设置Defaultprofile ?

Thanks for a hint.

谢谢你的一个提示。

Best Regards

致以最亲切的问候

Frank

弗兰克

[1] eclipsec.exe -application org.eclipse.equinox.p2.director -repository -installIU -destination C:/developmenttools/JDT/4.3/eclipse -profile DefaultProfile -followReferences

[1]eclipsec。exe而且org.eclipse.equinox.p2。director -repository -installIU -destination C:/developmenttools/JDT/4.3/eclipse -profile DefaultProfile -followReferences。

[2]

[2]

!MESSAGE Application error !STACK 1 java.lang.IllegalStateException: Profile DefaultProfile is not current. Expected timestamp 1392631752387 but was 1392631752387. at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.lockProfile(SimpleProfileRegistry.java:819) at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:67) at org.eclipse.equinox.internal.p2.engine.Engine.perform(Engine.java:44) at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:31) at org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper.executePlan(PlanExecutionHelper.java:23) at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.executePlan(DirectorApplication.java:783) at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.planAndExecute(DirectorApplication.java:776) at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.performProvisioningActions(DirectorApplication.java:763) at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.run(DirectorApplication.java:1063) at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.start(DirectorApplication.java:1245) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) at org.eclipse.equinox.launcher.Main.run(Main.java:1450) at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

!消息应用程序错误!堆栈1 java.lang。IllegalStateException: Profile DefaultProfile不是当前的。预计时间戳1392631752387,但是1392631752387。[参考译文]. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .,. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .font - family:宋体;mso - ascii - font - family: tahoma; mso - hansi - font - family: tahoma; mso - hansi - font - family: tahoma; mso - hansi - font - family: tahoma ' >, < / span > < span开始(DirectorApplication.java:1245)在org. eclipseap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .。在sun.reflect.NativeMethodAccessorImpl org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)。在sun.reflect.NativeMethodAccessorImpl invoke0(本地方法)。在sun.reflect.DelegatingMethodAccessorImpl调用(未知源)。在java.lang.reflect.Method调用(未知源)。调用(不知道的来源)在org.eclipse.. launcher.main.invokeframework (Main.java:636)中。www.org.eclipse.org/201.org.org.org.org.org/。

1 个解决方案

#1


1  

This sounds like Eclipse bug 392818. Comments in the bug report say:

这听起来像Eclipse bug 392818。bug报告中的评论说:

Not sure if this can be considered a bug; the guide for installing software using the p2 director application (1) states that if you want to run the provisioning operation from within the target you're provisioning into you're not supposed to use the -destination argument.

不确定这是否可以被视为bug;使用p2 director应用程序(1)来安装软件的指南(1)指出,如果您想要在您所准备的目标中运行配置操作,那么就不应该使用-destination参数。

The problem you're facing most likely stems from the fact that you're trying to modify the platform while it is running. The -destination flag assumes that the target you're provisioning into is not started.

您所面临的问题很可能源于您在运行平台时试图修改它。目标标志假定您正在准备的目标没有启动。

(1) http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html - "Running inside the target application" section.

(1)http://help.eclipse.org/galileo/index.jsp? topic/ org. platform.doc.isv/guide/p2_director.html—“运行在目标应用程序”部分。

#1


1  

This sounds like Eclipse bug 392818. Comments in the bug report say:

这听起来像Eclipse bug 392818。bug报告中的评论说:

Not sure if this can be considered a bug; the guide for installing software using the p2 director application (1) states that if you want to run the provisioning operation from within the target you're provisioning into you're not supposed to use the -destination argument.

不确定这是否可以被视为bug;使用p2 director应用程序(1)来安装软件的指南(1)指出,如果您想要在您所准备的目标中运行配置操作,那么就不应该使用-destination参数。

The problem you're facing most likely stems from the fact that you're trying to modify the platform while it is running. The -destination flag assumes that the target you're provisioning into is not started.

您所面临的问题很可能源于您在运行平台时试图修改它。目标标志假定您正在准备的目标没有启动。

(1) http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html - "Running inside the target application" section.

(1)http://help.eclipse.org/galileo/index.jsp? topic/ org. platform.doc.isv/guide/p2_director.html—“运行在目标应用程序”部分。