features:install webconsole
change to working directory
mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeArtifactId=servicemix-camel-osgi-bundle -DgroupId=com.blogspot.aliasmrchips -DartifactId=example -Dversion=0.0.1-SNAPSHOT
Run mvn install to build the bundle.
Deploy to servicemix using "install/update..." functionality in web console.
If the bundle is deployed correctly, you will see log output in the servicemix command console.
Use the webconsole to stop the bundle.
Now, to make this a little more interesting, let's add a jetty endpoint to our camel route.
Add camel-jetty dependency to example/pom.xml
org.apache.camel
camel-jetty
${camel.version}
Edit src/main/resources/META_INF/spring/camel-context.xml and change the from endpoint to use jetty...
Build and redeploy the bundle to servicemix. At this point, you should get an error:
Failed to resolve endpoint: jetty://http://localhost/example due to: No component found with scheme: jetty