You won't directly be able to convert a maven project into an OSGI bundle and deploy the same JBoss Fuse. JBoss Fuse uses Karaf under the hood which is a fully OSGI Based container.
Hence, for your existing maven projects, you will need to convert them into OSGI bundles, using the maven-bundle-plugin and specifying the packaging as 'bundle',
<packaging>bundle</packaging> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>2.5.3</version> <extensions>true</extensions> </plugin> </plugins>
Hi. thanks for the reply. The existing pom file already has the settings within it...
If you have existing Maven projects, then unfortunately you cannot make them directly deployable.
If you are looking out for ways to make the bundle deployable, then you need to create a bundle, using the Plugin Project, much as highlighted here, https://blogs.oracle.com/arungupta/entry/totd_126_creating_an_osgi.
You should then be able to deploy the bundle. Hope that helps !
But using maven projects, there is no way to directly make them deployable.
Thanks for reply on this. I will look at that later. From your response though I dont think that I explaining this properly. Just to try and make this clear, I can compile my existing maven project and drop this into the deploy folder of fuse. This all works fine. The issue is how I can use jboss studio to understand the same maven imported project is a deployable entity. When I mark it deployable and start the jboss server(within studio) it doesnt seem to work! Hope this makes more sense of what I am trying to achieve.
Thanks for your time.