I am running pax-provision to create a helloworld OSGI app. in the pom.xml I have added the below configuration
<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>
the EclipseStarter file is part of simpleconfigurator jar file which is is the class path. The below are the logs before starting:
-> 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
I am unable to provide the jar file to it and thus not getting the osgi> prompt.
The issue was resolved by placing entry
link\:classpath\:runner-links/org.eclipse.osgi-3.3.2.link=org.eclipse.osgi_3.3.2.R33x_v20080105.jar link\:classpath\:runner-links/org.apache.felix.gogo.shell-0.10.0=org.apache.felix.gogo.shell_0.10.0.jar
in the runner/bundles/downloaded_bundles.properties file . Also, the org.eclipse.osgi_3.3.2.R33x_v20080105.jar was placed in the bundles directory