我有一个.bat文件,它在windows上执行时为eclipse创建工作区。
我想在执行.bat文件时导入maven项目。(而不是在eclipse中手动添加maven项目)
所以我添加了.bat文件:
调用mvn -Declipse.workspace = eclipseWorkspace eclipse:add-maven-repo
调用eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -importAll “使用svn://库...”
但第二次调用eclipse时出现此错误..:
!MESSAGE应用程序错误!STACK 1 java.lang.RuntimeException: 应用程序“org.eclipse.cdt.managedbuilder.core.headlessbuild”可以 在注册表中找不到。可用的应用程序是: org.eclipse.ant.core.antRunner, org.eclipse.e4.ui.workbench.swt.E4Application, org.eclipse.e4.ui.workbench.swt.GenTopic, org.eclipse.equinox.app.error,org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.touchpoint.natives.nativePackageExtractor, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.jdt.apt.core.aptBuild,org.eclipse.ui.ide.workbench, org.eclipse.ant.ui.antRunner, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.jdt.core.JavaIndexer。在 org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248) 在 org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:497)at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)at at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)at at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
我找不到如何通过cmd将maven项目导入eclipse的示例。如果有人可以分享一些知识,我们将非常感激。
此致 基雷
答案 0 :(得分:0)
你无头导入它的原因是什么?
如果你想提供一个“taylormade”Eclipse包含。工作区你可以尝试Oomph或Eclipse Profiles - > http://profiles.yatta.de?download。 Eclipse Profiles有SVN ......