使用更新站点的存档从命令行安装google eclipse插件

时间:2013-05-06 20:32:27

标签: eclipse-plugin google-eclipse-plugin

我正在尝试使用以下步骤从命令行安装google eclipse插件 http://www.lorenzobettini.it/2012/10/installing-eclipse-features-via-the-command-line/

我将eclipse juno的google eclipse插件存档复制到以下目录中: -

/home/ricky/_softwares/DevelopmentSoftwares/eclipsePluginsDropinsZipsFeatures/gae/

现在,我正尝试使用以下命令从命令行安装google eclipse插件: -

./eclipse -clean -purgeHistory -application org.eclipse.equinox.p2.director -noSplash -repository jar:file:/home/ricky/_softwares/DevelopmentSoftwares/eclipsePluginsDropinsZipsFeatures/gae/com.google.gdt.eclipse.suite.4.2.update.site_3.2.3.zip/ -installIUs file:/var/tmp/PPFs0awM0/updateSite/site.xml.Plugin

其中文件:/var/tmp/PPFs0awM0/updateSite/site.xml.Plugin 是使用以下方法检索的标识符: - enter image description here

在eclipse /配置目录中执行命令日志后出错: -

!SESSION 2013-05-07 01:42:13.111 -----------------------------------------------
eclipse.buildId=M20120914-1800
java.version=1.6.0_37
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product -purgeHistory -application org.eclipse.equinox.p2.director -repository jar:file:/home/ricky/_softwares/DevelopmentSoftwares/eclipsePluginsDropinsZipsFeatures/gae/com.google.gdt.eclipse.suite.4.2.update.site_3.2.3.zip/ -installIUs file:/var/tmp/PPFs0awM0/updateSite/site.xml.Plugin
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.jee.product -clean -purgeHistory -application org.eclipse.equinox.p2.director -repository jar:file:/home/ricky/_softwares/DevelopmentSoftwares/eclipsePluginsDropinsZipsFeatures/gae/com.google.gdt.eclipse.suite.4.2.update.site_3.2.3.zip/ -installIUs file:/var/tmp/PPFs0awM0/updateSite/site.xml.Plugin

!ENTRY org.eclipse.osgi 4 0 2013-05-07 01:42:18.755
!MESSAGE Application error
!STACK 1
java.lang.IllegalArgumentException: Neither raw version nor format was specified: var
    at org.eclipse.equinox.internal.p2.metadata.VersionParser.parse(VersionParser.java:165)
    at org.eclipse.equinox.p2.metadata.Version.create(Version.java:79)
    at org.eclipse.equinox.p2.metadata.Version.parseVersion(Version.java:141)
    at org.eclipse.equinox.p2.metadata.VersionedId.<init>(VersionedId.java:59)
    at org.eclipse.equinox.p2.metadata.VersionedId.parse(VersionedId.java:46)
    at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.parseIUsArgument(DirectorApplication.java:217)
    at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.processArguments(DirectorApplication.java:854)
    at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.run(DirectorApplication.java:1031)
    at org.eclipse.equinox.internal.p2.director.app.DirectorApplication.start(DirectorApplication.java:1222)
    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:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

任何指针或链接都会有所帮助。 在此先感谢.. :))

1 个答案:

答案 0 :(得分:1)

请尝试使用以下命令。

./ eclipse -application org.eclipse.equinox.p2.director -repository http://dl.google.com/eclipse/plugin/4.2 -installIUs com.google.gdt.eclipse.suite.e42.feature.feature.group -noSplash

存储库参数采用URL,Google插件的ID为com.google.gdt.eclipse.suite.e42.feature.feature.group。看看http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html