Osgi pax供应无法加载org/eclipse/core/runtime/adapter/EclipseStarter类来运行equinox
我正在运行pax provision来创建helloworld OSGI应用程序。在pom.xml中,我添加了以下配置Osgi pax供应无法加载org/eclipse/core/runtime/adapter/EclipseStarter类来运行equinox,osgi,equinox,pax-runner,Osgi,Equinox,Pax Runner,我正在运行pax provision来创建helloworld OSGI应用程序。在pom.xml中,我添加了以下配置 <plugin> <groupId>org.ops4j</groupId> <artifactId>maven-pax-plugin</artifactId> <version>1
<plugin>
<groupId>org.ops4j</groupId>
<artifactId>maven-pax-plugin</artifactId>
<version>1.5</version>
<configuration>
<!--
| some example Pax-Runner settings
-->
<provision>
<param>--platform=equinox</param>
<param>--profiles=minimal</param>
<param>--version=3.3.2</param>
<param>--log=DEBUG</param>
<param>--bcp/p=file:///C:/mavenrepo/org/eclipse/equinox/simpleconfigurator/1.0.400/simpleconfigurator-1.0.400.jar</param>
<param>--bcp/p=file:///.</param>
</provision>
</configuration>
<executions>
<!--
| uncomment to auto-generate IDE files
-->
<execution>
<id>ide-support</id>
<goals>
<goal>eclipse</goal>
</goals>
</execution>
</executions>
</plugin>
我无法向其提供jar文件,因此无法获得osgi>提示。通过放置条目解决了问题 链接\:类路径\:runner links/org.eclipse.osgi-3.3.2.link=org.eclipse.osgi_3.3.2.R33x_v20080105.jar 链接\:类路径\:runner链接/org.apache.felix.gogo.shell-0.10.0=org.apache.felix.gogo.shell\u 0.10.0.jar 在runner/bundles/download_bundles.properties文件中。此外,org.eclipse.osgi_3.3.2.R33x_v20080105.jar被放置在bundles目录中
-> Using class org.ops4j.pax.runner.platform.DefaultJavaRunner [org.eclipse.core.runtime.adaptor.EclipseStarter]
-> VM options: [[-Dosgi.install.area=equinox]]
-> Classpath: [[bundles/org.eclipse.equinox.simpleconfigurator_1.0.400.v20130327-2119.jar, bundles/-855037795_0.0.0.jar, bundles/org.apache.felix.gogo.shell_0.10.0.jar]]
-> Platform options: [[-console, -configuration, equinox]]
-> Java home: [C:\Java\jdk1.6.0_22]
-> Working dir: [runner]
-> Environment options: [null]
-> Start command line [[C:\Java\jdk1.6.0_22/bin/java, -Dosgi.install.area=equinox, -cp, bundles/org.eclipse.equinox.simpleconfigurator_1.0.400.v20130327-2119.jar;bundles/-855037795_0.0.0.jar;bundles/org.apache.felix.gogo.shell_0.10.0.jar, org.eclipse.core.runtime.adaptor.EclipseStarter, -console, -configuration, equinox]]
-> Starting platform process.
-> Wrapping stream I/O.
-> Added shutdown hook.
-> Runner has successfully finished his job!
-> Waiting for framework exit.
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/adaptor/EclipseStarter